diagnostic severity
The level at which a rule reports, from none and suggestion through warning to error.
In more detail
A team can introduce a rule as a suggestion while learning it and promote it to an error once the code is clean. The nearest configuration layer wins.
Related terms
- diagnostic — A message the compiler or an analyzer reports about code, carrying a rule identifier such as CA2000, a severity and an explanation.
- EditorConfig — A plain-text .editorconfig file that records a repository's coding style, and in .NET also the severity of each analyzer rule, for editors and the build to apply.
- TreatWarningsAsErrors — The build property that turns every compiler and analyzer warning into an error, so code with warnings fails to build.
Taught in
- Code Quality: .editorconfig and Roslyn Analyzers — Modern .NET Core, C# & Enterprise Microservices