Scaffold descriptor, test runner, and test folder for a new generator-coupled analyzer (TDD — tests before analyzer). Use when adding a diagnostic that runs on generator output.
Arguments: $ARGUMENTS
Example: /new-coupled-analyzer SPIRE016 "Variant field type mismatch"
$1 as the rule ID and everything after as the titleSPIRE followed by a numeric ID — reject otherwiseid: "$1" in src/Houtamelo.Spire.Analyzers/SourceGenerators/AnalyzerDescriptors.cs — abort if duplicatesrc/Houtamelo.Spire.Analyzers/SourceGenerators/AnalyzerDescriptors.cs
{RuleId}_{TitlePascalCase}SPIRE009, SPIRE011, etc.)tests/Houtamelo.Spire.SourceGenerators.Tests/{CategoryName}/
VariantFieldTypeMismatch)tests/Houtamelo.Spire.SourceGenerators.Tests/{CategoryName}/cases/
_shared.cs preamble. Each case file includes its own [DiscriminatedUnion] declaration and usage code.tests/Houtamelo.Spire.SourceGenerators.Tests/{CategoryName}/{CategoryName}Tests.cs
GeneratorAnalyzerTestBaseCategory to return "{CategoryName}"GetAnalyzers() to return the analyzer instanceIsRelevantDiagnostic(d) to filter by {RuleId}tests/Houtamelo.Spire.SourceGenerators.Tests/Exhaustiveness/ExhaustivenessTests.csdocs/rules/{RuleId}.mddotnet build — must succeed with zero warnings