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                
#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                

Dogma Solutions Roslyn Analyzers

DogmaSolutions.Analyzers on NuGet

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
  • DescriptionWebApi 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
  • DescriptionWebApi 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

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
1.0.40 502 3/14/2022
1.0.39 434 3/14/2022
1.0.38-rc 281 3/14/2022
1.0.37-rc 282 3/13/2022
1.0.35-rc 192 3/13/2022
1.0.34-rc 268 3/13/2022
1.0.33-rc 278 3/13/2022
1.0.32-rc 206 3/13/2022
1.0.31-rc 256 3/13/2022

Added rules: DSA001, DSA002