LawnDart.Analyzers
0.4.0-alpha.7
dotnet add package LawnDart.Analyzers --version 0.4.0-alpha.7
NuGet\Install-Package LawnDart.Analyzers -Version 0.4.0-alpha.7
<PackageReference Include="LawnDart.Analyzers" Version="0.4.0-alpha.7"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="LawnDart.Analyzers" Version="0.4.0-alpha.7" />
<PackageReference Include="LawnDart.Analyzers"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add LawnDart.Analyzers --version 0.4.0-alpha.7
#r "nuget: LawnDart.Analyzers, 0.4.0-alpha.7"
#:package LawnDart.Analyzers@0.4.0-alpha.7
#addin nuget:?package=LawnDart.Analyzers&version=0.4.0-alpha.7&prerelease
#tool nuget:?package=LawnDart.Analyzers&version=0.4.0-alpha.7&prerelease
LawnDart.Analyzers
Compile-time checks for event schema versioning only. Diagnostic prefix
LDT. Add the package to a project that declares [EventTypeName] types.
Positioning §3 preferred warmup over analyzers. That is reopened only
for these versioning rules. Warmup
(EventTypeCatalog.Materialize / WithUpcasters) is still the runtime
authority. A green analyzer is not a substitute for warmup — the analyzer
sees types in the compilation; it cannot see whether WithEventTypes /
WithUpcasters registered them.
Do not treat this package as a kitchen-sink linter. Missing
[EventTypeName], duplicate tokens, kebab-case, and handler/DI mistakes
stay warmup / ContextStartupValidator.
Install
dotnet add package LawnDart.Analyzers --prerelease
Diagnostics
| ID | When | Fix |
|---|---|---|
LDT001 |
Two or more types in one family mark current: true. |
Keep the domain name on the current type. Historical is AuthorRegisteredV1. Mark exactly one current: true. |
LDT002 |
A family has two or more CLR types and no current: true. |
Add current: true on the current type. One-arg [EventTypeName("token")] is not an error when it is the only type. |
LDT003 |
A historical version cannot reach current through IEventUpcaster<TTo, TFrom> hops. |
Add a direct hop or a chain (v1 → v2, v2 → v3). There is no downcast API. |
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 |
|---|---|---|
| 0.4.0-alpha.7 | 58 | 9/18/2026 |
| 0.4.0-alpha.6 | 61 | 9/17/2026 |