Skip to content

Backs/Collections.Analyzer

Repository files navigation

MIT Nuget

Collections.Analyzer is a set of roslyn-based diagnostics for C#-projects that detect potential problems with operating different collections.

Motivation

For more information, see the following articles:

Features

Compiler warnings

Analyze your C#-code and warn about redundant method calls.

Code fix string

Code fixes

Automatically fixes found problems.

Code fix enumerable

Diagnostics

Full set of diagnostics

Installation

Every analyzer can be installed as a usual nuget-package. Just add a package reference to a project:

<PackageReference Include="Collections.Analyzer" Version="0.2.12.1" />

The analyzer will work only in the project it was added to. If you want to analyse all projects in your solution, you can add file Directory.build.props to the solution directory with content:

<Project>
  <ItemGroup>
    <PackageReference Include="Collections.Analyzer" Version="0.2.12.1" />
  </ItemGroup>
</Project>

MSBuild will read these properties.

About

Roslyn-based diagnostics for collections.

Topics

Resources

License

Stars

Watchers

Forks

Languages