SpecHygiene v1.0.0
Static hygiene checks for Reqnroll / SpecFlow BDD solutions — find unused C# code, unused step definitions, feature-file data errors, and duplicate scenarios. No AI, no network.
Install
dotnet tool install -g SpecHygiene
spechygiene ./MySolutionOr clone and run: dotnet run --project src/SpecHygiene -- ./MySolution
What it checks
- Unused code — Roslyn semantic dead-code (methods, classes, interfaces).
- Unused step definitions — bindings no scenario uses, matched with runtime-accurate Cucumber-expression / regex semantics.
- Data errors — undefined placeholders,
ScenariowithExamples:, malformed tables, unresolved@DataSource. - Duplicate scenarios — exact, containment, and near-duplicate via deterministic step fingerprints.
Output
A self-contained HTML report (dashboard + collapsible sections, light/dark) and a text summary. See a live sample.
Built on .NET 8, cross-platform, 217 tests. Full notes in CHANGELOG.md.