Skip to content

protomorphine/ImmutableAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Immutable Analyzer

Tests Docs

This project is a .NET analyzer tool that utilizes Roslyn to check a class for immutability based on the types of it's properties and their accessor list.

Overview

Immutability is a key concept in functional programming and can help prevent bugs related to mutable state.
The purpose of this tool is to help developers ensure that their classes follow immutability principles, which can lead to more stable and predictable code.

How To Use

  • Manually Get the sources of analyzer projects
    $ git clone https://github.com/protomorphine/ImmutableAnalyzer
    Add project reference to your .csproj file:
    <ItemGroup>
        <ProjectReference Include="../ImmutableAnalyzer.Attributes/ImmutableAnalyzer.Attributes.csproj" />
        <ProjectReference Include="../ImmutableAnalyzer.CodeFixes/ImmutableAnalyzer.CodeFixes.csproj" />
        <ProjectReference Include="../ImmutableAnalyzer/ImmutableAnalyzer.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
    </ItemGroup>
  • Nuget At this moment project NOT published on NuGet. Stay tuned.

Documentation

Made with: