RungerHeimdall

Rules

Every rule shipped by the analyzers. Severity is the default; both architecture.json and .editorconfig can override it.

IDRuleFamilySeverity
ARCH1001Layer dependency directionArchitectureWarning
ARCH1002Forbidden type referenceArchitectureWarning
ARCH1003Forbidden namespace referenceArchitectureWarning
ARCH1004Namespace must match folderArchitectureWarning
ARCH1005Repositories and services must be interfacesArchitectureWarning
ARCH1006Layer must not reference disallowed frameworksArchitectureWarning
ARCH1007Avoid static mutable stateArchitectureWarning
ARCH1008Endpoint layer must not create infrastructure typesArchitectureWarning
PERF1001Avoid empty params array allocationPerformanceInfo
PERF1002Avoid Enumerable.Count() on a countable collectionPerformanceWarning
PERF1003Avoid ToList before foreachPerformanceWarning
PERF1004Avoid string concatenation inside loopsPerformanceWarning
PERF1005Avoid capturing the loop variable in a closurePerformanceWarning
PERF1006Avoid reading the system clock on a hot pathPerformanceInfo
PERF1007Avoid Enum.HasFlag boxingPerformanceInfo
PERF1008Avoid the default comparer for a struct without a generic comparison interfacePerformanceWarning
PERF1009Avoid Substring allocations for parsing and comparisonPerformanceWarning
PERF1010Prefer GeneratedRegex over new RegexPerformanceWarning
PERF1011Avoid foreach over a non-generic collection of value typesPerformanceWarning
PERF1012Avoid ToLower/ToUpper for comparisonPerformanceWarning
PERF2001Avoid LINQ inside loopsPerformanceInfo
PERF2002Avoid Task.Run inside async methodsPerformanceInfo
PERF2003Avoid async voidPerformanceInfo
PERF2004Avoid blocking on tasksPerformanceWarning
PERF2005Avoid enumerating an IEnumerable more than oncePerformanceInfo
PERF2006Avoid awaiting a ValueTask more than oncePerformanceInfo
PERF2007Avoid Task.FromResult on hot pathsPerformanceInfo
PERF2008Avoid Array.Resize inside loopsPerformanceInfo