DogmaSolutions.Analyzers
1.0.40
dotnet add package DogmaSolutions.Analyzers --version 1.0.40
NuGet\Install-Package DogmaSolutions.Analyzers -Version 1.0.40
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="DogmaSolutions.Analyzers" Version="1.0.40"> <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 DogmaSolutions.Analyzers --version 1.0.40
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DogmaSolutions.Analyzers, 1.0.40"
#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 DogmaSolutions.Analyzers as a Cake Addin #addin nuget:?package=DogmaSolutions.Analyzers&version=1.0.40 // Install DogmaSolutions.Analyzers as a Cake Tool #tool nuget:?package=DogmaSolutions.Analyzers&version=1.0.40
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Dogma Solutions Roslyn Analyzers
A set of Roslyn Analyzer aimed to enforce some design good practices and code quality (QA) rules.
Rules
This section describes the rules included into this package.
Every rule is accompanied by the following information and clues:
- Category → identify the area of interest of the rule, and can have one of the following values: Design / Naming / Style / Usage / Performance / Security
- Severity → state the default severity level of the rule. The severity level can be changed by editing the .editorconfig file used by the project/solution. Possible values are enumerated by the DiagnosticSeverity enum
- Description → a short description about the rule aim.
- Motivation and fix → a detailed explanation of the detected issue, and a brief description on how to change your code in order to solve it.
- See also → a list of similar/related rules.
DSA001
- Category → Design
- Severity → Warning
- Description → WebApi controller methods should not contain data-manipulation business logics through a LINQ query expression.
- Motivation and fix → A WebApi controller method is using Entity Framework DbContext to directly manipulate data through a LINQ query expression. WebApi controllers should not contain data-manipulation business logics. Move the data-manipulation business logics into a more appropriate class, or even better, an injected service.
- See also → DSA002
DSA002
- Category → Design
- Severity → Warning
- Description → WebApi controller methods should not contain data-manipulation business logics through a LINQ fluent query.
- Motivation and fix → A WebApi controller method is using Entity Framework DbSet to directly manipulate data through a LINQ fluent query. WebApi controllers should not contain data-manipulation business logics. Move the data-manipulation business logics into a more appropriate class, or even better, an injected service.
- See also → DSA001
Installation
- NuGet package (recommended) → https://www.nuget.org/packages/DogmaSolutions.Analyzers
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.
Added rules: DSA001, DSA002