Ferrous.Pedantic
3.1.0
dotnet add package Ferrous.Pedantic --version 3.1.0
NuGet\Install-Package Ferrous.Pedantic -Version 3.1.0
<PackageReference Include="Ferrous.Pedantic" Version="3.1.0" />
<PackageVersion Include="Ferrous.Pedantic" Version="3.1.0" />
<PackageReference Include="Ferrous.Pedantic" />
paket add Ferrous.Pedantic --version 3.1.0
#r "nuget: Ferrous.Pedantic, 3.1.0"
#:package Ferrous.Pedantic@3.1.0
#addin nuget:?package=Ferrous.Pedantic&version=3.1.0
#tool nuget:?package=Ferrous.Pedantic&version=3.1.0
Ferrous.Pedantic
Clippy-style pedantic Roslyn analyzers (FE0400–FE0446) for .NET, plus an opt-in <FerrousPedantic>true</FerrousPedantic> MSBuild preset elevating all FE* warnings to build errors.
Rules
| ID | Default | Description |
|---|---|---|
FE0400 |
Warning | Non-exhaustive switch on an enum (even with _ => on [Exhaustive] enums). |
FE0401 |
Warning | .Unwrap() / .Expect() called on Result<T, TError> or Option<T> (clippy::unwrap_used). |
FE0402 |
Warning | throw inside a [NoThrow] or Result<T, TError>-returning method (clippy::panic_in_result_fn). |
FE0403 |
Warning | Capturing closure passed to ScopeGuard.Defer(Action) (suggests zero-alloc ScopeGuard.Defer(state, static s => ...)). |
FE0404 |
Error | Uninitialized default or parameterless new() of Result<T, TError> or [DiscriminatedUnion] structs. |
Enabling Strict Mode
<PropertyGroup>
<FerrousPedantic>true</FerrousPedantic>
</PropertyGroup>
See the Pedantic Analyzers Guide and ferrous.westness.cc for full documentation.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Ferrous.Core (>= 3.1.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Ferrous.Pedantic:
| Package | Downloads |
|---|---|
|
Ferrous
Rust-grade compile-time safety, zero-allocation primitives, source generators, and 70 rustc-style Roslyn analyzers (FE0001–FE0508) for strict .NET 10 & .NET 11 builds and AI coding agents. |
|
|
Ferrous.CodeFixes
Roslyn IDE code fix and refactoring providers for 25 Ferrous diagnostics (FE0001, FE0301, FE0302, FE0400, FE0401, FE0403, FE0405–FE0412, FE0414–FE0417, FE0419, FE0420, FE0425, FE0427, FE0428, FE0501, FE0503). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.1.0 | 0 | 12/1/2026 |
| 3.0.1 | 0 | 12/1/2026 |
| 3.0.0 | 0 | 11/30/2026 |
| 2.8.1 | 0 | 11/30/2026 |
| 2.8.0 | 0 | 11/30/2026 |
| 2.7.0 | 0 | 11/30/2026 |
| 2.6.0 | 0 | 11/30/2026 |
| 2.4.2 | 0 | 11/30/2026 |
| 2.4.1 | 0 | 11/30/2026 |
| 2.4.0 | 0 | 11/30/2026 |
| 2.3.0 | 0 | 11/30/2026 |
| 2.2.0 | 0 | 11/30/2026 |
| 2.1.0 | 0 | 11/30/2026 |
| 2.0.0 | 0 | 11/30/2026 |
| 1.7.4 | 0 | 11/30/2026 |
| 1.7.3 | 0 | 11/30/2026 |
| 1.7.2 | 0 | 11/30/2026 |
| 1.7.1 | 0 | 11/30/2026 |
| 1.7.0 | 0 | 11/30/2026 |
| 1.6.0 | 0 | 11/30/2026 |