Troubleshooting & Roslyn Diagnostics (SPEC001-SPEC100)
| ID | Severity | Source | Meaning & Fix |
|---|---|---|---|
SPEC001 |
Warning | Analyzers |
Specification should be sealed or abstract (CodeFix available) |
SPEC002 |
Warning | Analyzers |
Mutable state inside Specification<T> |
SPEC003 |
Error | Analyzers |
Expression.Invoke detected; compose via And/Or/&/` |
SPEC004 |
Info | Analyzers |
Unbounded query without pagination |
SPEC005–006 |
Info (off by default) | Analyzers |
Ordering without pagination; domain spec outside Domain layer |
SPEC007 |
Warning | Analyzers |
Potential client-side evaluation in LINQ expression |
SPEC008 |
Warning | Analyzers |
Infrastructure service injected into Specification |
SPEC009 |
Error | Analyzers |
Async lambda inside expression tree |
SPEC010 |
Error | Analyzers |
Calling IsSatisfiedBy inside BuildExpression() |
SPEC011 |
Info | Analyzers |
Legacy Ardalis Specification pattern detected (CodeFix available) |
SPEC100 |
Error | Generators |
Type decorated with [Spec] must be partial |