GooseAnalyzers is a collection of .NET Analyzers for your C# code.
-
Install the
GooseAnalyzers
NuGet package in your project. -
Optionally, set
TreatWarningsAsErrors
totrue
when inRelease
configuration in your project files.<TreatWarningsAsErrors Condition="'$(Configuration)'=='Release'">true</TreatWarningsAsErrors>
We recommend this so that you get warnings that don't block your dev loop, but errors that block your CI/CD pipelines.
-
Review the list of analyzers below and adjust your project settings based on your preferences.
Identifier | Name | Description |
---|---|---|
GOOSE001 |
XmlDocumentationRequiredSuppressor | Limits the scope of CS1591 and SA1600 to interfaces. |
The GOOSE001
analyzer is a DiagnosticSuppressor
for the CS1591 and SA1600 rules that demand XML documentation on all public types and members.
This is a good practice, but it can unrealistic in some contexts.
We think that in those cases, having xml documentation on interfaces is a good middle ground.
- If you typically disable the
CS1591
orSA1600
rules, we recommend that the you enable them and use this suppressor to limit their scope to interfaces. - If you typically enable the
CS1591
orSA1600
rules, we recommend that the you disable theGOOSE001
suppressor.
Please consult BREAKING_CHANGES.md for more information about version history and compatibility.
This project is licensed under the Apache 2.0 license - see the LICENSE file for details.
Please read CONTRIBUTING.md for details on the process for contributing to this project.
Be mindful of our Code of Conduct.