Skip to content

S001 rejects required sections with heading suffixes (exact-match too strict) #14

Description

@hermanngeorge15

Bug

S001 (required-sections) requires exact heading text. A heading like:

## Acceptance Criteria — spec-linter v0.0.1

fails with Missing required section: "Acceptance Criteria" even though the section is clearly present. Found by dogfooding on the UnityInFlow root CLAUDE.md, which suffixes the section name with the tool/version it applies to.

Expected

A required section should match on prefix (heading starts with the required name, followed by end-of-line or a separator like , -, :), so versioned or scoped headings pass.

Notes

Workaround used: move the suffix into an ### subsection under a bare ## Acceptance Criteria heading.

🤖 Filed via Claude Code while dogfooding v0.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions