73 references to Resources
dotnet-format (73)
Analyzers\AnalyzerFormatter.cs (9)
16
Resources
.Code_Style,
24
Resources
.Analyzer_Reference,
87
logger.LogTrace(
Resources
.Running_0_analysis, _name);
90
logger.LogTrace(
Resources
.Determining_diagnostics);
101
logger.LogTrace(
Resources
.Complete_in_0_ms, projectDiagnosticsMS);
106
logger.LogTrace(
Resources
.Fixing_diagnostics);
112
logger.LogTrace(
Resources
.Complete_in_0_ms, fixDiagnosticsMS);
115
logger.LogTrace(
Resources
.Analysis_complete_in_0ms_, analysisStopwatch.ElapsedMilliseconds);
226
logger.LogWarning(
Resources
.Unable_to_fix_0_No_associated_code_fix_found, diagnosticId);
Analyzers\AnalyzerRunner.cs (2)
50
logger.LogWarning(
Resources
.Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting, project.Name);
67
logger.LogDebug(
Resources
.Running_0_analyzers_on_1, analyzers.Length, project.Name);
Analyzers\SolutionCodeFixApplier.cs (4)
27
logger.LogWarning(
Resources
.Unable_to_fix_0_Code_fix_1_doesnt_support_Fix_All_in_Solution, diagnosticId, codeFix.GetType().Name);
73
logger.LogWarning(
Resources
.Unable_to_fix_0_Code_fix_1_didnt_return_a_Fix_All_action, diagnosticId, codeFix.GetType().Name);
81
logger.LogWarning(
Resources
.Unable_to_fix_0_Code_fix_1_returned_an_unexpected_operation, diagnosticId, codeFix.GetType().Name);
89
logger.LogWarning(
Resources
.Failed_to_apply_code_fix_0_for_1_2, codeFix.GetType().Name, diagnosticId, ex.Message);
CodeFormatter.cs (14)
32
logger.LogInformation(string.Format(
Resources
.Formatting_code_files_in_workspace_0, formatOptions.WorkspaceFilePath));
34
logger.LogTrace(
Resources
.Loading_workspace);
55
logger.LogDebug(
Resources
.Project_0_is_using_configuration_from_1, project.Name, configDocument.FilePath);
61
logger.LogTrace(
Resources
.Complete_in_0_ms, loadWorkspaceMS);
65
logger.LogTrace(
Resources
.Determining_formattable_files);
71
logger.LogTrace(
Resources
.Complete_in_0_ms, determineFilesMS);
73
logger.LogTrace(
Resources
.Running_formatters);
80
logger.LogTrace(
Resources
.Complete_in_0_ms, formatterRanMS);
91
logger.LogInformation(
Resources
.Formatted_code_file_0, documentWithError!.FilePath);
98
logger.LogError(
Resources
.Failed_to_save_formatting_changes);
107
logger.LogDebug(
Resources
.Formatted_0_of_1_files, documentIdsWithErrors.Length, fileCount);
109
logger.LogInformation(
Resources
.Format_complete_in_0_ms, workspaceStopwatch.ElapsedMilliseconds);
195
logger.LogDebug(
Resources
.Skipping_referenced_project_0, project.Name);
202
logger.LogWarning(
Resources
.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, project.FilePath);
Commands\FormatAnalyzersCommand.cs (1)
18
var command = new Command("analyzers",
Resources
.Run_3rd_party_analyzers__and_apply_fixes)
Commands\FormatCommandCommon.cs (17)
23
public static readonly Argument<string> SlnOrProjectArgument = new Argument<string>(
Resources
.SolutionOrProjectOrFileArgumentName)
25
Description =
Resources
.SolutionOrProjectOrFileArgumentDescription,
31
Description =
Resources
.Whether_to_treat_the_workspace_argument_as_a_simple_folder_of_files,
35
Description =
Resources
.Doesnt_execute_an_implicit_restore_before_formatting,
40
Description =
Resources
.The_target_framework_to_use_when_loading_the_workspace,
44
Description =
Resources
.Verify_no_formatting_changes_would_be_performed_Terminates_with_a_non_zero_exit_code_if_any_files_would_have_been_formatted,
50
Description =
Resources
.A_space_separated_list_of_diagnostic_ids_to_use_as_a_filter_when_fixing_code_style_or_3rd_party_issues,
56
Description =
Resources
.A_space_separated_list_of_diagnostic_ids_to_ignore_when_fixing_code_style_or_3rd_party_issues,
60
Description =
Resources
.The_severity_of_diagnostics_to_fix_Allowed_values_are_info_warn_and_error,
66
Description =
Resources
.A_list_of_relative_file_or_folder_paths_to_include_in_formatting_All_files_are_formatted_if_empty,
72
Description =
Resources
.A_list_of_relative_file_or_folder_paths_to_exclude_from_formatting,
76
Description =
Resources
.Format_files_generated_by_the_SDK,
80
Description =
Resources
.Set_the_verbosity_level_Allowed_values_are_quiet_minimal_normal_detailed_and_diagnostic,
86
Description =
Resources
.Log_all_project_or_solution_load_information_to_a_binary_log_file,
92
Description =
Resources
.Accepts_a_file_path_which_if_provided_will_produce_a_json_report_in_the_given_directory,
108
logger.LogDebug(
Resources
.The_dotnet_runtime_version_is_0, runtimeVersion);
245
logger.LogCritical(
Resources
.Standard_input_used_multiple_times);
Commands\FormatStyleCommand.cs (1)
18
var command = new Command("style",
Resources
.Run_code_style_analyzers_and_apply_fixes)
Commands\FormatWhitespaceCommand.cs (4)
18
var command = new Command("whitespace",
Resources
.Run_whitespace_formatting)
36
symbolResult.AddError(
Resources
.Cannot_specify_the_folder_option_with_no_restore);
46
symbolResult.AddError(
Resources
.Cannot_specify_the_folder_option_when_writing_a_binary_log);
56
symbolResult.AddError(
Resources
.Cannot_specify_the_folder_option_with_framework);
Commands\RootFormatCommand.cs (1)
18
var formatCommand = new RootCommand(
Resources
.Formats_code_to_match_editorconfig_settings)
Formatters\CharsetFormatter.cs (1)
14
protected override string FormatWarningDescription =>
Resources
.Fix_file_encoding;
Formatters\DocumentFormatter.cs (3)
197
? string.Format(
Resources
.Delete_0_characters, change.Span.Length)
199
? string.Format(
Resources
.Insert_0, textChange)
200
: string.Format(
Resources
.Replace_0_characters_with_1, change.Span.Length, textChange);
Formatters\EndOfLineFormatter.cs (1)
14
protected override string FormatWarningDescription =>
Resources
.Fix_end_of_line_marker;
Formatters\FinalNewlineFormatter.cs (1)
13
protected override string FormatWarningDescription =>
Resources
.Fix_final_newline;
Formatters\OrganizeImportsFormatter.cs (2)
17
protected override string FormatWarningDescription =>
Resources
.Fix_imports_ordering;
58
logger.LogWarning(
Resources
.Unable_to_organize_imports_for_0_The_document_is_too_complex, Path.GetFileName(document.FilePath));
Formatters\WhitespaceFormatter.cs (1)
17
protected override string FormatWarningDescription =>
Resources
.Fix_whitespace_formatting;
ReportWriter.cs (1)
21
logger.LogInformation(
Resources
.Writing_formatting_report_to_0, reportFilePath);
src\sdk\artifacts\obj\dotnet-format\Release\net11.0\Microsoft.CodeAnalysis.Tools.Resources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
Resources
)));
Workspaces\MSBuildWorkspaceFinder.cs (7)
37
var foundSolution = FindMatchingFile(searchDirectory, FindSolutionFiles,
Resources
.Multiple_MSBuild_solution_files_found_in_0_Specify_which_to_use_with_the_workspace_argument);
38
var foundProject = FindMatchingFile(searchDirectory, FindProjectFiles,
Resources
.Multiple_MSBuild_project_files_found_in_0_Specify_which_to_use_with_the_workspace_argument);
42
throw new FileNotFoundException(string.Format(
Resources
.Both_a_MSBuild_project_file_and_solution_file_found_in_0_Specify_which_to_use_with_the_workspace_argument, searchDirectory));
55
throw new FileNotFoundException(string.Format(
Resources
.Could_not_find_a_MSBuild_project_or_solution_file_in_0_Specify_which_to_use_with_the_workspace_argument, searchDirectory));
72
throw new FileNotFoundException(string.Format(
Resources
.The_file_0_does_not_appear_to_be_a_valid_project_solution_file_or_file_based_app, Path.GetFileName(workspacePath)));
78
?
Resources
.The_solution_file_0_does_not_exist
79
:
Resources
.The_project_file_0_does_not_exist;
Workspaces\MSBuildWorkspaceLoader.cs (2)
63
logger.LogError(
Resources
.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, solutionOrProjectPath);
79
logger.LogWarning(
Resources
.Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings);