chore: fix EditorConfig lint errors (issue #7110) #7321
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves EditorConfig linting failures caused by GitHub API rate limiting when the
editorconfig-checker
npm package attempts to download binaries during CI/CD workflows.Problem
The original implementation relied on downloading binaries from GitHub releases API, which caused 403 rate limit errors:
GET /repos/editorconfig-checker/editorconfig-checker/releases/latest - 403 Failed to download binary: HttpError: API rate limit exceeded for 104.45.201.64
Solution
editorconfig-checker
with a self-contained Python implementation.editorconfig
files and configurationChanges
tools/make/lib/lint/editorconfig.mk
: Updated to use Python script instead of binarytools/scripts/editorconfig_check.py
: New Python-based EditorConfig checker (uses only standard library)Benefits
✅ No more GitHub API rate limiting errors
✅ Zero external dependencies - uses only Python standard library
✅ Environment independent - works without Node.js or npm
✅ Maintains full compatibility - same CLI interface and config files
✅ CI/CD ready - tested and verified working
Testing
make lint-editorconfig-files FILES="README.md"
Related Issues
Resolves #7110