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.
<PackageVersion Include="Blowin.CleanCode" Version="2.5.5" />
<PackageReference Include="Blowin.CleanCode"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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 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.
#:package Blowin.CleanCode@2.5.5
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Blowin.CleanCode&version=2.5.5
#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,971 | 8/20/2022 |
| 2.5.9 | 1,430 | 7/29/2022 |
| 2.5.8 | 1,522 | 2/17/2022 |
| 2.5.7 | 1,923 | 1/21/2022 |
| 2.5.6 | 1,333 | 9/13/2021 |
| 2.5.5 | 1,265 | 9/1/2021 |
| 2.5.4 | 1,291 | 8/30/2021 |
| 2.5.3 | 1,284 | 8/29/2021 |
| 2.5.2 | 1,469 | 8/26/2021 |
| 2.5.1 | 1,320 | 8/24/2021 |
| 2.5.0 | 1,334 | 8/22/2021 |
| 2.4.0 | 1,161 | 7/31/2021 |
| 2.3.1 | 1,255 | 7/28/2021 |
| 2.3.0 | 1,353 | 7/23/2021 |
| 2.2.3 | 1,366 | 7/20/2021 |
| 2.2.2 | 1,351 | 7/20/2021 |
| 2.2.1 | 1,346 | 7/19/2021 |
| 2.2.0 | 1,370 | 7/18/2021 |
| 2.1.0 | 1,362 | 7/15/2021 |
| 2.0.4 | 1,262 | 7/14/2021 |
| 2.0.3 | 1,341 | 7/13/2021 |
| 2.0.2 | 1,359 | 7/12/2021 |
| 2.0.1 | 1,520 | 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.