78 references to Resources
dotnet-format (71)
Analyzers\AnalyzerFormatter.cs (9)
15
Resources
.Code_Style,
23
Resources
.Analyzer_Reference,
86
logger.LogTrace(
Resources
.Running_0_analysis, _name);
89
logger.LogTrace(
Resources
.Determining_diagnostics);
100
logger.LogTrace(
Resources
.Complete_in_0_ms, projectDiagnosticsMS);
105
logger.LogTrace(
Resources
.Fixing_diagnostics);
111
logger.LogTrace(
Resources
.Complete_in_0_ms, fixDiagnosticsMS);
114
logger.LogTrace(
Resources
.Analysis_complete_in_0ms_, analysisStopwatch.ElapsedMilliseconds);
225
logger.LogWarning(
Resources
.Unable_to_fix_0_No_associated_code_fix_found, diagnosticId);
Analyzers\AnalyzerRunner.cs (2)
43
logger.LogWarning(
Resources
.Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting, project.Name);
66
logger.LogDebug(
Resources
.Running_0_analyzers_on_1, analyzers.Length, project.Name);
Analyzers\SolutionCodeFixApplier.cs (4)
26
logger.LogWarning(
Resources
.Unable_to_fix_0_Code_fix_1_doesnt_support_Fix_All_in_Solution, diagnosticId, codeFix.GetType().Name);
72
logger.LogWarning(
Resources
.Unable_to_fix_0_Code_fix_1_didnt_return_a_Fix_All_action, diagnosticId, codeFix.GetType().Name);
80
logger.LogWarning(
Resources
.Unable_to_fix_0_Code_fix_1_returned_an_unexpected_operation, diagnosticId, codeFix.GetType().Name);
88
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);
53
logger.LogDebug(
Resources
.Project_0_is_using_configuration_from_1, project.Name, configDocument.FilePath);
59
logger.LogTrace(
Resources
.Complete_in_0_ms, loadWorkspaceMS);
64
logger.LogTrace(
Resources
.Determining_formattable_files);
70
logger.LogTrace(
Resources
.Complete_in_0_ms, determineFilesMS);
72
logger.LogTrace(
Resources
.Running_formatters);
79
logger.LogTrace(
Resources
.Complete_in_0_ms, formatterRanMS);
90
logger.LogInformation(
Resources
.Formatted_code_file_0, documentWithError!.FilePath);
97
logger.LogError(
Resources
.Failed_to_save_formatting_changes);
106
logger.LogDebug(
Resources
.Formatted_0_of_1_files, documentIdsWithErrors.Length, fileCount);
108
logger.LogInformation(
Resources
.Format_complete_in_0_ms, workspaceStopwatch.ElapsedMilliseconds);
191
logger.LogDebug(
Resources
.Skipping_referenced_project_0, project.Name);
198
logger.LogWarning(
Resources
.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, project.FilePath);
Commands\FormatAnalyzersCommand.cs (1)
17
var command = new Command("analyzers",
Resources
.Run_3rd_party_analyzers__and_apply_fixes)
Commands\FormatCommandCommon.cs (16)
22
public static readonly Argument<string> SlnOrProjectArgument = new Argument<string>(
Resources
.SolutionOrProjectArgumentName)
24
Description =
Resources
.SolutionOrProjectArgumentDescription,
30
Description =
Resources
.Whether_to_treat_the_workspace_argument_as_a_simple_folder_of_files,
34
Description =
Resources
.Doesnt_execute_an_implicit_restore_before_formatting,
38
Description =
Resources
.Verify_no_formatting_changes_would_be_performed_Terminates_with_a_non_zero_exit_code_if_any_files_would_have_been_formatted,
44
Description =
Resources
.A_space_separated_list_of_diagnostic_ids_to_use_as_a_filter_when_fixing_code_style_or_3rd_party_issues,
50
Description =
Resources
.A_space_separated_list_of_diagnostic_ids_to_ignore_when_fixing_code_style_or_3rd_party_issues,
54
Description =
Resources
.The_severity_of_diagnostics_to_fix_Allowed_values_are_info_warn_and_error,
60
Description =
Resources
.A_list_of_relative_file_or_folder_paths_to_include_in_formatting_All_files_are_formatted_if_empty,
66
Description =
Resources
.A_list_of_relative_file_or_folder_paths_to_exclude_from_formatting,
70
Description =
Resources
.Format_files_generated_by_the_SDK,
74
Description =
Resources
.Set_the_verbosity_level_Allowed_values_are_quiet_minimal_normal_detailed_and_diagnostic,
80
Description =
Resources
.Log_all_project_or_solution_load_information_to_a_binary_log_file,
86
Description =
Resources
.Accepts_a_file_path_which_if_provided_will_produce_a_json_report_in_the_given_directory,
102
logger.LogDebug(
Resources
.The_dotnet_runtime_version_is_0, runtimeVersion);
233
logger.LogCritical(
Resources
.Standard_input_used_multiple_times);
Commands\FormatStyleCommand.cs (1)
17
var command = new Command("style",
Resources
.Run_code_style_analyzers_and_apply_fixes)
Commands\FormatWhitespaceCommand.cs (3)
17
var command = new Command("whitespace",
Resources
.Run_whitespace_formatting)
34
symbolResult.AddError(
Resources
.Cannot_specify_the_folder_option_with_no_restore);
44
symbolResult.AddError(
Resources
.Cannot_specify_the_folder_option_when_writing_a_binary_log);
Commands\RootFormatCommand.cs (1)
17
var formatCommand = new RootCommand(
Resources
.Formats_code_to_match_editorconfig_settings)
Formatters\CharsetFormatter.cs (1)
13
protected override string FormatWarningDescription =>
Resources
.Fix_file_encoding;
Formatters\DocumentFormatter.cs (3)
196
? string.Format(
Resources
.Delete_0_characters, change.Span.Length)
198
? string.Format(
Resources
.Insert_0, textChange)
199
: string.Format(
Resources
.Replace_0_characters_with_1, change.Span.Length, textChange);
Formatters\EndOfLineFormatter.cs (1)
13
protected override string FormatWarningDescription =>
Resources
.Fix_end_of_line_marker;
Formatters\FinalNewlineFormatter.cs (1)
12
protected override string FormatWarningDescription =>
Resources
.Fix_final_newline;
Formatters\OrganizeImportsFormatter.cs (2)
16
protected override string FormatWarningDescription =>
Resources
.Fix_imports_ordering;
57
logger.LogWarning(
Resources
.Unable_to_organize_imports_for_0_The_document_is_too_complex, Path.GetFileName(document.FilePath));
Formatters\WhitespaceFormatter.cs (1)
16
protected override string FormatWarningDescription =>
Resources
.Fix_whitespace_formatting;
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
)));
ReportWriter.cs (1)
20
logger.LogInformation(
Resources
.Writing_formatting_report_to_0, reportFilePath);
Workspaces\MSBuildWorkspaceFinder.cs (7)
34
var foundSolution = FindMatchingFile(searchDirectory, FindSolutionFiles,
Resources
.Multiple_MSBuild_solution_files_found_in_0_Specify_which_to_use_with_the_workspace_argument);
35
var foundProject = FindMatchingFile(searchDirectory, FindProjectFiles,
Resources
.Multiple_MSBuild_project_files_found_in_0_Specify_which_to_use_with_the_workspace_argument);
39
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));
52
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));
67
throw new FileNotFoundException(string.Format(
Resources
.The_file_0_does_not_appear_to_be_a_valid_project_or_solution_file, Path.GetFileName(workspacePath)));
73
?
Resources
.The_solution_file_0_does_not_exist
74
:
Resources
.The_project_file_0_does_not_exist;
Workspaces\MSBuildWorkspaceLoader.cs (2)
54
logger.LogError(
Resources
.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, solutionOrProjectPath);
70
logger.LogWarning(
Resources
.Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings);
dotnet-format.UnitTests (7)
CodeFormatterTests.cs (3)
180
var pattern = string.Format(
Resources
.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, "(.*)");
247
var pattern = string.Format(
Resources
.Formatted_code_file_0, @"(.*)");
337
var pattern = string.Format(
Resources
.Formatted_code_file_0, @"(.*)");
MSBuild\MSBuildWorkspaceFinderTests.cs (4)
25
Resources
.Could_not_find_a_MSBuild_project_or_solution_file_in_0_Specify_which_to_use_with_the_workspace_argument,
38
Resources
.Multiple_MSBuild_project_files_found_in_0_Specify_which_to_use_with_the_workspace_argument,
51
Resources
.Multiple_MSBuild_solution_files_found_in_0_Specify_which_to_use_with_the_workspace_argument,
64
Resources
.Both_a_MSBuild_project_file_and_solution_file_found_in_0_Specify_which_to_use_with_the_workspace_argument,