Mews.Analyzers 1.3.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Mews.Analyzers --version 1.3.0
NuGet\Install-Package Mews.Analyzers -Version 1.3.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="Mews.Analyzers" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mews.Analyzers --version 1.3.0
#r "nuget: Mews.Analyzers, 1.3.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.
// Install Mews.Analyzers as a Cake Addin
#addin nuget:?package=Mews.Analyzers&version=1.3.0

// Install Mews.Analyzers as a Cake Tool
#tool nuget:?package=Mews.Analyzers&version=1.3.0

Mews.Analyzers

Prerequisites

In case 'Microsoft.CodeAnalysis' is not found during build, install 'Microsoft.Net.Compilers' v2.3.0

Rules checked

Usings
  • Mews001: Unused using is not allowed.
  • Mews002: Abbreviated using is not allowed.
  • Mews003: Dto in using is not allowed.
  • Mews004: Empty lines between usings are not allowed.
Code style
  • Mews102: Indentation of 2 following lines can differ only by -4, 0 or 4 spaces. (skipping empty lines)
  • Mews103: Line cannot start with an operator.
  • Mews104: Do not use Multiline comments.
  • Mews106: Comment has to start with a capital letter.
  • Mews107: Comment has to end with a dot.
  • Mews108: Comment can't contain 'TODO'.
Banned expressions
  • Mews201: Switch is not allowed.
  • Mews202: DateTime.Now is not allowed.
  • Mews203: DateTime.UtcNow is not allowed.
  • Mews204: Ternary operator is not allowed.
  • Mews205: HasFlag is not allowed.
  • Mews206: Object.Equals is not allowed.
  • Mews207: == is not allowed.
  • Mews208: != is not allowed.
  • Mews209: String concatenation is not allowed.
  • Mews210: String.Join() is not allowed.
  • Mews211: String.Format() is not allowed.
  • Mews212: String.Empty() is not allowed.
  • Mews213: Parameter lists in object initializers are not allowed.
  • Mews214: Linq query syntax is not allowed.
  • Mews215: Parameterless Enumerable.Any() is not allowed.
  • Mews216: Explicit variable declaration syntax is not allowed.
  • Mews217: Symmetrical assignment is not allowed.
  • Mews218: HasValue on nullables is not allowed.
  • Mews219: Casting nullables to a non-nullable value type is not allowed.
  • Mews220: Null conditional member access is not allowed. MapRef should be used instead.
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • 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.0.0 32,270 8/31/2023
1.6.0 7,568 7/26/2023
1.5.1 757 7/26/2023
1.5.0 1,076 7/25/2023
1.4.1 113,482 4/12/2022
1.4.0 8,030 3/11/2022
1.3.9 98,801 11/13/2020
1.3.8 29,384 4/28/2020
1.3.7 21,422 2/27/2020
1.3.6 16,190 12/5/2019
1.3.5 3,644 11/20/2019
1.3.4 3,142 11/11/2019
1.3.3 1,242 11/8/2019
1.3.2 3,747 10/25/2019
1.3.1 3,554 10/7/2019
1.3.0 7,421 8/26/2019
1.2.6 1,288 6/21/2019
1.2.5 1,221 6/20/2019
1.2.4 1,445 4/8/2019
1.2.3 1,357 4/3/2019
1.2.2 9,641 3/7/2019
1.2.1 1,774 6/11/2018

Find unused usings in code