Skip to content

scripts: make gen-index auto-discover branches; fix lint false positives#1

Open
blackrocx0 wants to merge 1 commit intocablate:mainfrom
blackrocx0:main
Open

scripts: make gen-index auto-discover branches; fix lint false positives#1
blackrocx0 wants to merge 1 commit intocablate:mainfrom
blackrocx0:main

Conversation

@blackrocx0
Copy link
Copy Markdown

Summary

  • gen-index.sh: Replace hardcoded 11-item BRANCHES array with declare -a BRANCHES=() + auto-discovery loop so new branches are picked up without editing the script.
  • lint.sh: Add _template and README to the skip list in all 4 check loops to prevent false positives on template files.

Test plan

  • Run ./scripts/gen-index.sh on a repo with branches not in the old hardcoded list — confirm they appear in index.md
  • Run ./scripts/lint.sh — confirm no false-positive errors for atoms/_template.md or wiki/_template.md

🤖 Generated with Claude Code

gen-index.sh: switch BRANCHES from a hardcoded 11-item list to an empty
array so the script auto-discovers branches by filename prefix. This makes
the framework immediately usable in any fork without manual branch config.

lint.sh: skip _template and README slugs in all four check loops to avoid
spurious ghost-link and format errors on framework template files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants