28 references to Whitespace
dotnet-format (7)
CodeFormatter.cs (1)
40: await OpenMSBuildWorkspaceAsync(formatOptions.WorkspaceFilePath, formatOptions.WorkspaceType, formatOptions.NoRestore, formatOptions.FixCategory != FixCategory.Whitespace, binaryLogPath, logWorkspaceWarnings, logger, cancellationToken).ConfigureAwait(false);
Commands\FormatWhitespaceCommand.cs (1)
57formatOptions = formatOptions with { FixCategory = FixCategory.Whitespace };
Commands\RootFormatCommand.cs (1)
59formatOptions = formatOptions with { FixCategory = FixCategory.Whitespace | FixCategory.CodeStyle | FixCategory.Analyzers };
Formatters\CharsetFormatter.cs (1)
19public override FixCategory Category => FixCategory.Whitespace;
Formatters\EndOfLineFormatter.cs (1)
16public override FixCategory Category => FixCategory.Whitespace;
Formatters\FinalNewlineFormatter.cs (1)
15public override FixCategory Category => FixCategory.Whitespace;
Formatters\WhitespaceFormatter.cs (1)
19public override FixCategory Category => FixCategory.Whitespace;
dotnet-format.UnitTests (21)
CodeFormatterTests.cs (7)
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, 656FixCategory fixCategory = FixCategory.Whitespace,
Formatters\AbstractFormatterTests.cs (7)
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 (6)
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" });