ANcpLua.Analyzers
1.7.0
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 ANcpLua.Analyzers --version 1.7.0
NuGet\Install-Package ANcpLua.Analyzers -Version 1.7.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="ANcpLua.Analyzers" Version="1.7.0"> <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.7.0" />
<PackageReference Include="ANcpLua.Analyzers"> <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 ANcpLua.Analyzers --version 1.7.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ANcpLua.Analyzers, 1.7.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.
#:package ANcpLua.Analyzers@1.7.0
#: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.7.0
#tool nuget:?package=ANcpLua.Analyzers&version=1.7.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ANcpLua.Analyzers
Roslyn analyzers for modern C# patterns. Catches common mistakes at compile time with automatic code fixes.
Installation
dotnet add package ANcpLua.Analyzers
Using ANcpLua.NET.Sdk? This package is auto-injected—no installation needed.
Rules
| Rule | Severity | Description |
|---|---|---|
| AL0001 | ❌ | Don't reassign primary constructor parameters |
| AL0002 | ⚠️ | Don't repeat negated patterns |
| AL0003 | ❌ | Don't divide by constant zero |
| AL0004 | ⚠️ | Use is for Span constant comparison |
| AL0005 | ⚠️ | Use SequenceEqual for Span comparison |
| AL0006 | ⚠️ | Field conflicts with primary constructor param |
| AL0007 | ⚠️ | GetSchema should be explicit interface |
| AL0008 | ⚠️ | GetSchema must return null |
| AL0009 | ⚠️ | Don't call IXmlSerializable.GetSchema |
| AL0010 | ℹ️ | Type should be partial for generators |
| AL0011 | ⚠️ | Use Lock type instead of lock keyword |
| AL0012 | ⚠️ | Deprecated OTel semantic convention |
| AL0013 | ℹ️ | Missing telemetry schema URL |
| AL0014 | ℹ️ | Use is null instead of == null |
| AL0015 | ℹ️ | Normalize null-guard style |
| AL0016 | ℹ️ | Combine declaration with null-check |
| AL0017 | ⚠️ | Hardcoded version in Directory.Packages.props |
| AL0018 | ⚠️ | Version.props not imported |
| AL0020-24 | ❌ | ASP.NET Core form binding issues |
| AL0025 | ⚠️ | Prefer static lambda |
| AL0026 | ⚠️ | Use TimeProvider instead of DateTime.Now |
| AL0027 | ⚠️ | Use System.Text.Json instead of Newtonsoft |
Legend: ❌ Error · ⚠️ Warning · ℹ️ Info
Configuration
[*.cs]
dotnet_diagnostic.AL0001.severity = error
dotnet_diagnostic.AL0014.severity = none
Documentation
ancplua.mintlify.app/analyzers
Related
- ANcpLua.NET.Sdk — MSBuild SDK (auto-injects this analyzer)
- ANcpLua.Roslyn.Utilities — Roslyn helpers
License
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.Sbom.Targets (>= 4.1.5)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
net10.0
- Microsoft.Sbom.Targets (>= 4.1.5)
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.9.0 | 0 | 1/21/2026 |
| 1.8.0 | 0 | 1/21/2026 |
| 1.7.0 | 2 | 1/21/2026 |
| 1.6.16 | 45 | 1/21/2026 |
| 1.6.15 | 49 | 1/20/2026 |
| 1.6.13 | 266 | 1/18/2026 |
| 1.6.12 | 51 | 1/18/2026 |
| 1.6.11 | 59 | 1/18/2026 |
| 1.6.10 | 54 | 1/17/2026 |
| 1.6.7 | 49 | 1/16/2026 |
| 1.6.6 | 122 | 1/14/2026 |
| 1.6.5 | 97 | 1/14/2026 |
| 1.6.4 | 85 | 1/14/2026 |
| 1.6.3 | 86 | 1/14/2026 |
| 1.6.2 | 87 | 1/14/2026 |
| 1.6.1 | 359 | 1/14/2026 |
| 1.6.0 | 102 | 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 |