Skip to content

feat(standards): warn when .claude/ is not ignored - #182

Merged
twistedmelonman merged 2 commits into
mainfrom
claude/feat-standards-claude-ignore
Oct 2, 2026
Merged

twistedmelonman merged 2 commits into
mainfrom
claude/feat-standards-claude-ignore

Conversation

@twistedmelonman

Copy link
Copy Markdown
Member

Advances smartwatermelon/dev-env#178

Adds a repo-wide claude-ignore check to the shared standards check, per the 2026-10-02 fleet decision.

  • Probe path .claude/__standards_probe__ must be ignored by the committed rules (git check-ignore -q --no-index).
  • No tracked file under .claude/ may match an ignore rule (git ls-files -ci --exclude-standard -- .claude/). Negated shared files pass.
  • Violations emit a ::warning title=claude-ignore naming the fix and dev-env#178.
  • core.excludesFile is blanked for these git calls. .git/info/exclude cannot be, so a local clone that has one may pass where CI warns.

Warning-only. The script always exits 0, including on git errors (those warn "not checked"). It becomes an error later, once the two deferred repos conform.

The standards-check-v1 tag is not moved. That is a separate release step after merge.

Lives in standards/check-claude-ignore.sh, called from standards/run-standards.sh after node-floor. --skip claude-ignore disables it; there is no workflow input yet.

Tests: new tests/test-check-claude-ignore.sh (6 cases) plus one run-standards case proving it warns without failing the run. With a no-op stub checker, 4 of the 6 new cases fail; with the real script all pass.

@twistedmelonman
twistedmelonman merged commit 8c51fb8 into main Oct 2, 2026
2 checks passed
@twistedmelonman
twistedmelonman deleted the claude/feat-standards-claude-ignore branch October 2, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant