You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 5, 2026. It is now read-only.
* ci: add rule metadata validation job to lint workflow
Add validate-rule-metadata job that checks Tier 2 rules files for:
- **Added:** line format (date, source, valid status)
- **See also:** cross-references point to existing entries
- Frontmatter entry_count matches actual active entry count
Only validates entries that have metadata annotations. Unannotated
entries are skipped. Uses GitHub Actions error annotations for
precise line-level feedback.
Closes #130
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: strip CRLF from rules files before metadata validation
Files committed from Windows have \r\n line endings. The grep
extractions captured trailing \r, causing status comparison failures
and arithmetic syntax errors in entry_count validation.
Pre-process each file through tr -d '\r' to a temp file for
consistent parsing on Ubuntu CI runners.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
echo "::error file=$file,line=$ec_line::entry_count is $frontmatter_count but computed active entries = $active_entries (total=$total_entries, inactive=$inactive_entries)"
0 commit comments