Skip to content

S001: support fuzzy section name matching #5

@hermanngeorge15

Description

@hermanngeorge15

Problem

S001 requires exact heading text match for required sections. The CLAUDE.md for this project has ## Acceptance Criteria — spec-linter v0.0.1 which fails because of the suffix.

Real-world spec files frequently append context to section names:

  • ## Acceptance Criteria — v0.0.1
  • ## Project Overview (Draft)
  • ## Constraints / Phase 1

Proposal

Match required sections using startsWith or includes instead of exact match. For example, any heading that starts with "Acceptance Criteria" (case-insensitive) should satisfy S001.

Acceptance Criteria

  • ## Acceptance Criteria — v0.0.1 passes S001
  • ## Project Overview (Draft) passes S001
  • Exact matches still work
  • Tests updated

Labels

enhancement, rule:S001

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions