ArchitectureAnalyzer diagnostics

The analyzer currently defines AARC001 through AARC008 on the main branch. Optional diagnostics activate only when the related contract sections or operational options are configured.

IDPurposeDefault
AARC001Architecture contract could not be loadedError
AARC002Forbidden architecture dependency directionError
AARC003Forbidden API usage in an architecture layerError
AARC004Missing required architecture layer declarationError
AARC005Multiple distinct architecture layer declarationsError
AARC006Layer declaration contradicts namespace classificationWarning
AARC007Interop declaration outside an allowed layerError
AARC008Invalid architecture analyzer configuration valueWarning

Severity and operational settings

Severity is configured through standard Roslyn .editorconfig keys. ArchitectureAnalyzer also exposes architecture_analyzer.* properties for operational behavior. The architecture contract remains the source of truth for project-specific policy.

[*.cs]
dotnet_diagnostic.AARC002.severity = error

Complete reference

See docs/diagnostics.md for triggering examples, exact rule semantics, suppression information, and the current contract surface.