Ferrous.Pedantic
2.3.0
dotnet add package Ferrous.Pedantic --version 2.3.0
NuGet\Install-Package Ferrous.Pedantic -Version 2.3.0
<PackageReference Include="Ferrous.Pedantic" Version="2.3.0" />
<PackageVersion Include="Ferrous.Pedantic" Version="2.3.0" />
<PackageReference Include="Ferrous.Pedantic" />
paket add Ferrous.Pedantic --version 2.3.0
#r "nuget: Ferrous.Pedantic, 2.3.0"
#:package Ferrous.Pedantic@2.3.0
#addin nuget:?package=Ferrous.Pedantic&version=2.3.0
#tool nuget:?package=Ferrous.Pedantic&version=2.3.0
Ferrous.Pedantic
Clippy-style pedantic Roslyn analyzers (FE0400–FE0404) 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 Repository for full documentation.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Ferrous.Core (>= 2.3.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Ferrous.Pedantic:
| Package | Downloads |
|---|---|
|
Ferrous.CodeFixes
Roslyn IDE code fix providers for Ferrous diagnostics (FE0001, FE0301, FE0400, FE0401, FE0403). |
|
|
Ferrous
Rust-grade compile-time safety, zero-allocation primitives, source generators, and Clippy-style Roslyn analyzers for .NET (polyfilling on .NET 10 and lighting up natively on .NET 11 / C# 15). |
|
|
Ferrous.Testing
Rust-grade testing utilities for .NET: in-memory compile-fail assertions (CompileAssert, like Rust's trybuild), framework-agnostic Result/Option assertions, and zero-allocation assertions (AllocAssert). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 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 |
| 1.5.0 | 0 | 11/30/2026 |
| 1.4.0 | 34 | 11/30/2026 |
| 1.3.3 | 38 | 11/30/2026 |
| 1.3.2 | 34 | 11/30/2026 |
| 1.3.1 | 34 | 11/30/2026 |
| 1.3.0 | 41 | 11/30/2026 |
| 1.2.0 | 53 | 11/30/2026 |