ANcpLua.Analyzers 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package ANcpLua.Analyzers --version 1.0.2
                    
NuGet\Install-Package ANcpLua.Analyzers -Version 1.0.2
                    
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="ANcpLua.Analyzers" Version="1.0.2">
  <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="ANcpLua.Analyzers" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ANcpLua.Analyzers">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
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 ANcpLua.Analyzers --version 1.0.2
                    
#r "nuget: ANcpLua.Analyzers, 1.0.2"
                    
#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 ANcpLua.Analyzers@1.0.2
                    
#: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=ANcpLua.Analyzers&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ANcpLua.Analyzers&version=1.0.2
                    
Install as a Cake Tool

ANcpLua.Analyzers

Unified Roslyn analyzers for C# focusing on code quality, best practices, and OpenTelemetry conventions.

Installation

dotnet add package ANcpLua.Analyzers

Rules

Design Rules

ID Description Severity
AL0001 Prohibit reassignment of primary constructor parameters Error
AL0002 Don't repeat negated patterns Warning
AL0006 Field name conflicts with primary constructor parameter Warning
AL0010 Type should be partial for source generator support Info

Reliability Rules

ID Description Severity
AL0003 Don't divide by constant zero Error

Usage Rules

ID Description Severity
AL0004 Use pattern matching when comparing Span with constants Warning
AL0005 Use SequenceEqual when comparing Span with non-constants Warning
AL0007 GetSchema should be explicitly implemented Error
AL0008 GetSchema must return null and not be abstract Error
AL0009 Don't call IXmlSerializable.GetSchema Error

Threading Rules

ID Description Severity
AL0011 Avoid lock keyword on non-Lock types (.NET 9+) Warning

OpenTelemetry Rules

ID Description Severity
AL0012 Deprecated semantic convention attribute Warning
AL0013 Missing telemetry schema URL Info

Refactorings

ID Description
AR0001 Convert SCREAMING_SNAKE_CASE to PascalCase

Code Fixes

Most analyzers come with automatic code fixes:

  • AL0002: Simplify pattern negation
  • AL0004: Convert to pattern matching
  • AL0005: Convert to SequenceEqual
  • AL0008: Make GetSchema return null
  • AL0010: Add partial modifier
  • AL0012: Use modern attribute name

Requirements

  • .NET 10+
  • C# 14

License

MIT

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.6.13 58 1/18/2026
1.6.12 45 1/18/2026
1.6.11 53 1/18/2026
1.6.10 48 1/17/2026
1.6.7 42 1/16/2026
1.6.6 116 1/14/2026
1.6.5 89 1/14/2026
1.6.4 79 1/14/2026
1.6.3 80 1/14/2026
1.6.2 81 1/14/2026
1.6.1 352 1/14/2026
1.6.0 96 1/13/2026
1.5.3 123 1/10/2026
1.5.2 82 1/10/2026
1.5.1 274 1/2/2026
1.5.0 85 1/2/2026
1.4.0 88 1/1/2026
1.3.6 87 1/2/2026
1.3.5 84 1/2/2026
1.3.3 92 12/31/2025
1.3.2 87 12/31/2025
1.3.1 89 12/30/2025
1.0.10 94 12/30/2025
1.0.9 93 12/29/2025
1.0.4 854 12/24/2025
1.0.3 162 12/24/2025
1.0.2 163 12/24/2025