SwitchAnalyzer 0.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SwitchAnalyzer --version 0.5.0
                    
NuGet\Install-Package SwitchAnalyzer -Version 0.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SwitchAnalyzer" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SwitchAnalyzer" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="SwitchAnalyzer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SwitchAnalyzer --version 0.5.0
                    
#r "nuget: SwitchAnalyzer, 0.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=SwitchAnalyzer&version=0.5.0
                    
Install SwitchAnalyzer as a Cake Addin
#tool nuget:?package=SwitchAnalyzer&version=0.5.0
                    
Install SwitchAnalyzer as a Cake Tool

C# analyzer for non-exhaustive cases in a switch with enums. Verifies that switch statement checks all existing enum values or all interface implementations/class inheritors if there is no default branch or it throws an exception.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 1.3

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on SwitchAnalyzer:

Package Downloads
CleanCodeNet

Metapackage that includes analyzers to improve code correctness. Not affiliated with Bob Martin.

Z0ne.Assertions

Debug Assertions to allow more easy assertions

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SwitchAnalyzer:

Repository Stars
dadhi/ImTools
Fast and memory-efficient immutable collections and helper data structures
Version Downloads Last updated
0.6.10 111,919 7/24/2019
0.6.9 904 7/19/2019
0.6.8 11,046 9/17/2018
0.6.7 1,204 9/12/2018
0.6.6 1,299 8/9/2018
0.6.5 1,003 8/8/2018
0.6.4 1,097 8/8/2018
0.6.3 998 8/8/2018
0.6.2 983 8/8/2018
0.6.1 961 8/7/2018
0.6.0 981 8/7/2018
0.5.0 1,192 7/7/2018
0.4.0 1,886 6/20/2018
0.3.0 1,162 6/11/2018
0.2.0 1,252 6/10/2018

Add support for a class as an argument (and check inheritors). Fix false positive warning in case if one of case expressions had empty body.