linQsupply.Analyzers
1.0.9
dotnet add package linQsupply.Analyzers --version 1.0.9
NuGet\Install-Package linQsupply.Analyzers -Version 1.0.9
<PackageReference Include="linQsupply.Analyzers" Version="1.0.9"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="linQsupply.Analyzers" Version="1.0.9" />
<PackageReference Include="linQsupply.Analyzers"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add linQsupply.Analyzers --version 1.0.9
#r "nuget: linQsupply.Analyzers, 1.0.9"
#:package linQsupply.Analyzers@1.0.9
#addin nuget:?package=linQsupply.Analyzers&version=1.0.9
#tool nuget:?package=linQsupply.Analyzers&version=1.0.9
linQsupply® Analyzers
Roslyn analyzers that enforce the logging and test-data conventions used by linQsupply projects. The package runs only during compilation and has no runtime component.
Installation
Install the package from NuGet.org:
dotnet add package linQsupply.Analyzers --version 1.0.2
Then ensure that the generated reference is a private development dependency. For central or explicit package management, use:
<PackageReference Include="linQsupply.Analyzers" Version="1.0.2" PrivateAssets="all" />
PrivateAssets="all" prevents the analyzer from becoming a transitive dependency of packages produced by the consuming project.
Diagnostics
| ID | Category | Default severity | Description |
|---|---|---|---|
LSQ001 |
Logging | Error | A linQsupply log event must identify exactly one logging location. |
LSQ002 |
Testing | Error | Every ScenarioData identifier must be a unique GUID without braces. |
LSQ003 |
Logging | Error | Every linQsupply logging call must provide an EventId. |
LSQ004 |
XSLT | Warning | Every XSLT file must contain the standard documentation sections. |
LSQ005 |
XSLT | Warning | The standard XSLT sections must appear in the required order. |
LSQ006 |
XSLT | Warning | Every XSLT file must begin with the standard UTF-8 XML declaration. |
LSQ007 |
Security | Warning | Sensitive data patterns in source code are warnings. |
LSQ009 |
Security | Info | Sensitive data patterns in XSLT files are informational findings. |
LSQ008 |
Maintainability | Info | Reusable literals are checked against shared constants, including referenced linQsupply assemblies. |
Diagnostics are enabled by default and run during command-line, IDE, and CI builds whenever analyzers are enabled by the consuming project.
Configuration
Standard Roslyn severity configuration is supported through .editorconfig. For example:
[*.cs]
dotnet_diagnostic.LSQ001.severity = warning
Suppressions should be documented and limited to cases where a project intentionally deviates from the shared convention.
For an intentional UTF-16 stylesheet, suppress LSQ006 only for that file:
[path/to/legacy-transform.xsl]
dotnet_diagnostic.LSQ006.severity = none
Compatibility
The analyzer assembly targets .NET Standard 2.0 and is intended for current Roslyn-based .NET SDK and Visual Studio builds.
Dependencies
The published package has no NuGet or runtime dependencies. It contains only the analyzer assembly used by the compiler.
The analyzer is built with Microsoft.CodeAnalysis.CSharp, provided by Microsoft Corporation under the MIT License. This build-time dependency is not included as a dependency of the published package because the consuming .NET SDK provides the Roslyn compiler APIs.
Support
For support, visit the linQsupply® website or the inSyca website.
License
This package is licensed under the MIT License.
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.