Every rule shipped by the analyzers. Severity is the default; both architecture.json and .editorconfig can override it.
| ID | Rule | Family | Severity |
|---|---|---|---|
| ARCH1001 | Layer dependency direction | Architecture | Warning |
| ARCH1002 | Forbidden type reference | Architecture | Warning |
| ARCH1003 | Forbidden namespace reference | Architecture | Warning |
| ARCH1004 | Namespace must match folder | Architecture | Warning |
| ARCH1005 | Repositories and services must be interfaces | Architecture | Warning |
| ARCH1006 | Layer must not reference disallowed frameworks | Architecture | Warning |
| ARCH1007 | Avoid static mutable state | Architecture | Warning |
| ARCH1008 | Endpoint layer must not create infrastructure types | Architecture | Warning |
| PERF1001 | Avoid empty params array allocation | Performance | Info |
| PERF1002 | Avoid Enumerable.Count() on a countable collection | Performance | Warning |
| PERF1003 | Avoid ToList before foreach | Performance | Warning |
| PERF1004 | Avoid string concatenation inside loops | Performance | Warning |
| PERF1005 | Avoid capturing the loop variable in a closure | Performance | Warning |
| PERF1006 | Avoid reading the system clock on a hot path | Performance | Info |
| PERF1007 | Avoid Enum.HasFlag boxing | Performance | Info |
| PERF1008 | Avoid the default comparer for a struct without a generic comparison interface | Performance | Warning |
| PERF1009 | Avoid Substring allocations for parsing and comparison | Performance | Warning |
| PERF1010 | Prefer GeneratedRegex over new Regex | Performance | Warning |
| PERF1011 | Avoid foreach over a non-generic collection of value types | Performance | Warning |
| PERF1012 | Avoid ToLower/ToUpper for comparison | Performance | Warning |
| PERF2001 | Avoid LINQ inside loops | Performance | Info |
| PERF2002 | Avoid Task.Run inside async methods | Performance | Info |
| PERF2003 | Avoid async void | Performance | Info |
| PERF2004 | Avoid blocking on tasks | Performance | Warning |
| PERF2005 | Avoid enumerating an IEnumerable more than once | Performance | Info |
| PERF2006 | Avoid awaiting a ValueTask more than once | Performance | Info |
| PERF2007 | Avoid Task.FromResult on hot paths | Performance | Info |
| PERF2008 | Avoid Array.Resize inside loops | Performance | Info |