Skip to content

vreniose95/Gu.Analyzers

 
 

Repository files navigation

Gu.Analyzers

License NuGet Build status Join the chat at https://gitter.im/JohanLarsson/Gu.Analyzers

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

Using Gu.Analyzers

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.

Installation

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

Updating

The ruleset editor does not handle changes IDs well, if things get out of sync you can try:

  1. Close visual studio.
  2. Edit the ProjectName.rulset file and remove the Gu.Analyzers element.
  3. Start visual studio and add back the desired configuration.

Above is not ideal, sorry about this. Not sure this is our bug.

Current status

Early alpha, names and IDs may change.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.7%
  • PowerShell 0.3%