73 references to FixCategory
dotnet-format (24)
Analyzers\AnalyzerFormatter.cs (4)
16FixCategory.CodeStyle, 24FixCategory.Analyzers, 36public FixCategory Category { get; } 40FixCategory category,
CodeFormatter.cs (1)
40: await OpenMSBuildWorkspaceAsync(formatOptions.WorkspaceFilePath, formatOptions.WorkspaceType, formatOptions.NoRestore, formatOptions.FixCategory != FixCategory.Whitespace, binaryLogPath, logWorkspaceWarnings, logger, cancellationToken).ConfigureAwait(false);
Commands\FormatAnalyzersCommand.cs (1)
55formatOptions = formatOptions with { FixCategory = FixCategory.Analyzers };
Commands\FormatStyleCommand.cs (1)
55formatOptions = formatOptions with { FixCategory = FixCategory.CodeStyle };
Commands\FormatWhitespaceCommand.cs (1)
57formatOptions = formatOptions with { FixCategory = FixCategory.Whitespace };
Commands\RootFormatCommand.cs (3)
59formatOptions = formatOptions with { FixCategory = FixCategory.Whitespace | FixCategory.CodeStyle | FixCategory.Analyzers };
FormatOptions.cs (1)
14FixCategory FixCategory,
Formatters\CharsetFormatter.cs (2)
19public override FixCategory Category => FixCategory.Whitespace;
Formatters\DocumentFormatter.cs (1)
26public abstract FixCategory Category { get; }
Formatters\EndOfLineFormatter.cs (2)
16public override FixCategory Category => FixCategory.Whitespace;
Formatters\FinalNewlineFormatter.cs (2)
15public override FixCategory Category => FixCategory.Whitespace;
Formatters\ICodeFormatter.cs (1)
13FixCategory Category { get; }
Formatters\OrganizeImportsFormatter.cs (2)
20public override FixCategory Category => FixCategory.CodeStyle;
Formatters\WhitespaceFormatter.cs (2)
19public override FixCategory Category => FixCategory.Whitespace;
dotnet-format.UnitTests (49)
Analyzers\CodeStyleAnalyzerFormatterTests.cs (2)
56await AssertCodeChangedAsync(testCode, expectedCode, editorConfig, fixCategory: FixCategory.CodeStyle); 71await AssertNoReportedFileChangesAsync(testCode, "root = true", fixCategory: FixCategory.CodeStyle, codeStyleSeverity: DiagnosticSeverity.Warning);
Analyzers\ThirdPartyAnalyzerFormatterTests.cs (3)
115await AssertCodeChangedAsync(testCode, expectedCode, editorConfig, fixCategory: FixCategory.Analyzers, analyzerReferences: analyzerReferences); 161await AssertCodeChangedAsync(testCode, expectedCode, editorConfig, fixCategory: FixCategory.Analyzers, analyzerReferences: analyzerReferences); 208await AssertCodeChangedAsync(testCode, expectedCode, editorConfig, fixCategory: FixCategory.Analyzers, analyzerReferences: analyzerReferences);
CodeFormatterTests.cs (18)
103fixCategory: FixCategory.CodeStyle, 428fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle); 442fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle, 457fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle, 475fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle, 490fixCategory: FixCategory.Whitespace); 504fixCategory: FixCategory.Whitespace | FixCategory.Analyzers, 525fixCategory: FixCategory.Analyzers, 563fixCategory: FixCategory.Analyzers, 611fixCategory: FixCategory.Analyzers, 645fixCategory: FixCategory.CodeStyle); 656FixCategory fixCategory = FixCategory.Whitespace,
Formatters\AbstractFormatterTests.cs (14)
82FixCategory fixCategory = FixCategory.Whitespace, 95FixCategory fixCategory = FixCategory.Whitespace, 124FixCategory fixCategory = FixCategory.Whitespace, 137FixCategory fixCategory = FixCategory.Whitespace, 164FixCategory fixCategory = FixCategory.Whitespace, 178FixCategory fixCategory = FixCategory.Whitespace, 203FixCategory fixCategory = FixCategory.Whitespace,
Formatters\FormattedFilesTests.cs (1)
64FixCategory: FixCategory.Whitespace,
Formatters\UnnecessaryImportsFormatterTests.cs (11)
38await AssertCodeUnchangedAsync(code, editorConfig, fixCategory: FixCategory.Whitespace, codeStyleSeverity: DiagnosticSeverity.Info); 53await AssertCodeUnchangedAsync(code, editorConfig, fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle, codeStyleSeverity: DiagnosticSeverity.Info); 77await AssertCodeUnchangedAsync(code, editorConfig, fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle, codeStyleSeverity: DiagnosticSeverity.Error); 106await AssertCodeChangedAsync(testCode, expectedCode, editorConfig, fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle, codeStyleSeverity: DiagnosticSeverity.Warning); 135await AssertCodeChangedAsync(testCode, expectedCode, editorConfig, fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle, codeStyleSeverity: DiagnosticSeverity.Warning, diagnostics: new[] { IDE0005 }); 159await AssertCodeUnchangedAsync(testCode, editorConfig, fixCategory: FixCategory.Whitespace | FixCategory.CodeStyle, codeStyleSeverity: DiagnosticSeverity.Warning, diagnostics: new[] { "IDE0073" });