GU0001 | Name the arguments. |
GU0002 | The position of a named argument should match. |
GU0003 | Name the parameters to match the assigned members. |
GU0004 | Assign all readonly members. |
GU0005 | Use correct argument positions. |
GU0006 | Use nameof. |
GU0007 | Prefer injecting. |
GU0008 | Avoid relay properties. |
GU0009 | Name the boolean parameter. |
GU0010 | Assigning same value. |
GU0011 | Don't ignore the returnvalue. |
GU0020 | Sort properties. |
GU0021 | Calculated property allocates reference type. |
GU0022 | Use get-only. |
GU0050 | Ignore events when serializing. |
GU0051 | Cache the XmlSerializer. |
GU0060 | Enum member value conflict. |
GU0070 | Default-constructed value type with no no useful default |
The preferable way to use the analyzers is to add the nuget package Gu.Analyzers to the project(s).
The severity of individual rules may be configured using rule set files in Visual Studio 2015.
Gu.Analyzers can be installed using Paket or the NuGet command line or the NuGet Package Manager in Visual Studio 2015.
Install using the command line:
Install-Package Gu.Analyzers
The ruleset editor does not handle changes IDs well, if things get out of sync you can try:
- Close visual studio.
- Edit the ProjectName.rulset file and remove the Gu.Analyzers element.
- Start visual studio and add back the desired configuration.
Above is not ideal, sorry about this. Not sure this is our bug.
Early alpha, names and IDs may change.