Solhigson.Analyzers
10.2.0
dotnet add package Solhigson.Analyzers --version 10.2.0
NuGet\Install-Package Solhigson.Analyzers -Version 10.2.0
<PackageReference Include="Solhigson.Analyzers" Version="10.2.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Solhigson.Analyzers" Version="10.2.0" />
<PackageReference Include="Solhigson.Analyzers"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Solhigson.Analyzers --version 10.2.0
#r "nuget: Solhigson.Analyzers, 10.2.0"
#:package Solhigson.Analyzers@10.2.0
#addin nuget:?package=Solhigson.Analyzers&version=10.2.0
#tool nuget:?package=Solhigson.Analyzers&version=10.2.0
Development-only compile-time rules for Solhigson projects: the IDE style rules with a fixer at warning in a packaged .globalconfig, superseded APIs, and raw-markup output through MarkupString, in a BannedSymbols.txt under Microsoft.CodeAnalysis.BannedApiAnalyzers, the SOLT test-class analyzers, and the SOLT settings declaration analyzers, which hold each [Setting] property to the settings catalog's declaration rules.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.BannedApiAnalyzers (>= 4.14.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
10.2.0: carries the Solhigson dotnet design at 9f03470 (docs/design/dotnet-design.md). BannedSymbols.txt bans Microsoft.AspNetCore.Components.MarkupString (RS0030, a warning the .globalconfig sets, an error where warnings are errors): render the value as text, which Razor HTML-encodes, or build the markup as a component. RenderTreeBuilder.AddMarkupContent is not banned: the Razor compiler writes static markup through it and RS0030 reports in generated code. The line resolves in every project that references the Components assembly (the ASP.NET Core shared framework, or a Components package in a Blazor WebAssembly client or Razor class library), and a project that uses no MarkupString sees no change. The ban flags constructing, converting to, reading a member of or taking typeof(MarkupString); a MarkupString another assembly returns still renders raw. A site is excepted by #pragma warning disable RS0030 or [SuppressMessage]; no solhigson-exceptions.txt line excepts an RS0030 site. 10.1.0: carries the Solhigson dotnet design at 9c8f4bb (docs/design/dotnet-design.md, with the Owner line naming groomer-solhigson-framework and the settings-file rule naming SOLT003-SOLT007 as shipped in this release). The SOLT settings declaration rules, category Solhigson.Settings, set to warning in the .globalconfig, on a property carrying Solhigson.Framework's [Setting]: SOLT003 a number or duration read from the settings table without both a Floor and a Ceiling, SOLT004 a File setting with a blank Reason, SOLT005 a Secret setting outside the settings table or with a Default, SOLT006 a declaration the settings catalog refuses (a Default, Floor or Ceiling that does not parse as the property's type, inverted bounds, a Default outside them, a type off the set, a [Setting] outside a [SettingsGroup]), and SOLT007 a setting whose <group>:<property> name looks secret, by the framework's SecretSettingName rule linked in, not declared Secret; the host does not re-check a declared setting's name, so silencing SOLT007 lets that value be stored unencrypted. Each is silenced by a solhigson-exceptions.txt line SOLT00n|<group type metadata name>.<property>|<reason>|<expiry yyyy-MM-dd>. 10.0.0: first release, carrying the Solhigson dotnet design at 517cca3 (docs/design/dotnet-design.md, Enforcement layer 2 and K). The .globalconfig sets the IDE idiom rules with a fixer, RS0030 and SOLT000-SOLT002 to warning, and EnforceCodeStyleInBuild is pinned in the package .targets; BannedSymbols.txt bans the ambient clock, the parameterless Random constructor, Thread.Sleep and the non-generic collections; SOLT001 refuses an xunit v2 test class whose only teardown is IAsyncDisposable, SOLT002 a File.ReadAll* of a constant .cs path, and SOLT000 an invalid, expired or stale solhigson-exceptions.txt line.