Blowin.CleanCode
2.5.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Blowin.CleanCode --version 2.5.5
NuGet\Install-Package Blowin.CleanCode -Version 2.5.5
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="Blowin.CleanCode" Version="2.5.5"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Blowin.CleanCode --version 2.5.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Blowin.CleanCode, 2.5.5"
#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.
// Install Blowin.CleanCode as a Cake Addin #addin nuget:?package=Blowin.CleanCode&version=2.5.5 // Install Blowin.CleanCode as a Cake Tool #tool nuget:?package=Blowin.CleanCode&version=2.5.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BlowinCleanCode is a Roslyn-based C# code analyzer that aims to provide a set of rules that helps to simplify code and make it cleaner.
Available analyses
Single responsibility | Encapsulation | Good practice | Code smell |
---|---|---|---|
Method contain And | Don't use public static field | Don't return null | Nested ternary operator |
Control flag | Don't use static class | Complex condition | |
Long method | Disposable member in non disposable class | Magic value | |
Many parameter in method | Switch statements should have at least 2 case clauses | Preserve whole object | |
Method contains a lot of declaration | Finalizers should not be empty | Hollow type name | |
Too many chained references | Type that provide Equals should implement IEquatable | Deeply nested | |
Large class | Switch should not have a lot of cases | ||
Large number of fields in types | Switch statements should not be nested | ||
Lambda have too many lines | Catch should do more than rethrow | ||
Empty 'default' clauses should be removed |
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.6.0 | 2,559 | 8/20/2022 |
2.5.9 | 1,284 | 7/29/2022 |
2.5.8 | 1,359 | 2/17/2022 |
2.5.7 | 1,426 | 1/21/2022 |
2.5.6 | 1,163 | 9/13/2021 |
2.5.5 | 1,099 | 9/1/2021 |
2.5.4 | 1,128 | 8/30/2021 |
2.5.3 | 1,111 | 8/29/2021 |
2.5.2 | 1,301 | 8/26/2021 |
2.5.1 | 1,158 | 8/24/2021 |
2.5.0 | 1,163 | 8/22/2021 |
2.4.0 | 985 | 7/31/2021 |
2.3.1 | 1,090 | 7/28/2021 |
2.3.0 | 1,178 | 7/23/2021 |
2.2.3 | 1,206 | 7/20/2021 |
2.2.2 | 1,167 | 7/20/2021 |
2.2.1 | 1,177 | 7/19/2021 |
2.2.0 | 1,197 | 7/18/2021 |
2.1.0 | 1,194 | 7/15/2021 |
2.0.4 | 1,098 | 7/14/2021 |
2.0.3 | 1,163 | 7/13/2021 |
2.0.2 | 1,193 | 7/12/2021 |
2.0.1 | 1,352 | 7/10/2021 |
Roslyn-based C# code analyzer that aims to provide a set of rules that helps to simplify code and make it cleaner.