test(rules): verify embedded system rule integrity
Summary
Closes #620.
- add an embedded-resource integrity test for
system_rules.jsonandrule_docs/ - detect duplicate path patterns by streaming the JSON object rather than decoding into a map
- validate expanded doublestar patterns, missing rule files, and orphan Markdown files
Validation
go test ./internal/config/rulespassesgit diff --checkpassesgo test -racecould not run locally because this Windows environment has cgo disabled
The change is limited to the existing rules test file and uses the existing doublestar dependency.
✅ OpenCodeReview: No supported files changed.
@tomatotomata Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
I checked the CLA status on #622 and it is still pending on the check, so I am leaving the PR draft while that status updates. I also refreshed the PR with the current validation details: go test ./internal/config/rules passes locally, and the diff stays limited to the existing rules test file.
I checked the CLA status on #622 and it is still pending on the check, so I am leaving the PR draft while that status updates. I also refreshed the PR with the current validation details:
go test ./internal/config/rulespasses locally, and the diff stays limited to the existing rules test file.
@tomatotomata It may be that the signed email account and the commit email account are inconsistent.