Rustly.Analyzers
10.6.2
See the version list below for details.
dotnet add package Rustly.Analyzers --version 10.6.2
NuGet\Install-Package Rustly.Analyzers -Version 10.6.2
<PackageReference Include="Rustly.Analyzers" Version="10.6.2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Rustly.Analyzers" Version="10.6.2" />
<PackageReference Include="Rustly.Analyzers"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Rustly.Analyzers --version 10.6.2
#r "nuget: Rustly.Analyzers, 10.6.2"
#:package Rustly.Analyzers@10.6.2
#addin nuget:?package=Rustly.Analyzers&version=10.6.2
#tool nuget:?package=Rustly.Analyzers&version=10.6.2
Rustly.Analyzers (v10.6.2)
Roslyn analyzers enforcing Rust-style patterns: null-safety, explicit error handling, unsafe Unwrap detection. 10 diagnostics.
Part of the Rustly ecosystem for .NET.
Install
dotnet add package Rustly.Analyzers --version 10.6.2
Diagnostics
| ID | Description | Severity |
|---|---|---|
| RUSTLY001 | Use Option<T> instead of nullable | Warning |
| RUSTLY002 | Use Result instead of try/catch | Warning |
| RUSTLY003 | Match not exhaustive | Warning |
| RUSTLY004 | Unsafe Unwrap call | Error |
| RUSTLY005 | Option compared to null | Warning |
| RUSTLY006 | Result ignored | Warning |
| RUSTLY007 | Use EnumValue instead of enum | Info |
| RUSTLY008 | Missing EnumValueSerializer | Warning |
| RUSTLY009 | Option used without check | Warning |
| RUSTLY010 | Implicit conversion from null | Warning |
Related Packages
- Rustly — Full toolkit
- Rustly.Types — Core: Option, Result, Unit
- Rustly.Extensions — Flatten, Transpose, LINQ
- Rustly.Prelude — Ok(), Err(), Some(), None()
- Rustly.Async — Async pipeline
- Rustly.Json — System.Text.Json
- Rustly.Json.Newtonsoft — Newtonsoft.Json
- Rustly.Configuration — IConfiguration
- Rustly.Analyzers — Roslyn analyzers
- Rustly.Generators — Source generators
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 | |
|---|---|---|---|
| 10.6.4 | 114 | 4/28/2026 | |
| 10.6.3 | 113 | 4/16/2026 | |
| 10.6.2 | 103 | 4/16/2026 | |
| 10.6.2-rc6 | 103 | 4/16/2026 | |
| 10.6.2-rc5 | 120 | 4/15/2026 | |
| 10.6.1 | 105 | 4/15/2026 |
EN: 10.6.2
- RUSTLY004 now detects Expect()/ExpectErr() in addition to Unwrap()/UnwrapErr() — all panic methods
- RUSTLY004 recognizes IsSome/IsOk guards in while/do/for loops and ternary expressions (lambda-friendly)
- RUSTLY011 (new): Map().UnwrapOr() can be simplified to MapOr()
- RUSTLY012 (new): Redundant Unwrap on known-safe value (Some(x).Unwrap())
- XML documentation added to all analyzers and diagnostic descriptors
RU: 10.6.2
- RUSTLY004 теперь обнаруживает Expect()/ExpectErr() в дополнение к Unwrap()/UnwrapErr() — все panic-методы
- RUSTLY004 распознаёт IsSome/IsOk проверки в циклах while/do/for и тернарных выражениях (lambda-friendly)
- RUSTLY011 (новый): Map().UnwrapOr() можно упростить до MapOr()
- RUSTLY012 (новый): Лишний Unwrap на заведомо безопасном значении (Some(x).Unwrap())
- Добавлена XML-документация ко всем анализаторам и дескрипторам диагностик