Skip to content

mrahhal/MR.Analyzers.Whitespace

Repository files navigation

MR.Analyzers.Whitespace

CI NuGet version License

Exterminates redundant and useless whitespace 🔥

By default, all rules are of Error severity. So they will fail the build, a very conscious decision.

Usage

Add the following in any ItemGroup in your csproj:

<PackageReference Include="MR.Analyzers.Whitespace" Version="{version}" PrivateAssets="All" ExcludeAssets="compile" />

Rules

  • WS1000: AvoidTrailingWhitespace: Analyzer/Fixer for trailing whitespace
  • WS1001: AddFinalNewLine: Analyzer/Fixer for inserting a newline at the end of the file