Repository navigation
Add gitignore template linter - #4943
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new required formatting workflow cannot pass because existing repository files have mixed line endings, trailing whitespace, and a missing final newline.
1 open issue
What changed in this PR
Adds a GitHub Actions workflow to lint all tracked .gitignore files for consistent line endings, trailing whitespace, and final newlines.
Changes:
- Runs formatting checks on pull requests and manual dispatches.
- Pins the GitHub Actions and
pre-commit-hooksversions. - Recursively discovers tracked
.gitignorefiles and reports formatter-generated diffs when checks fail.
| File | Description |
|---|---|
| .github/workflows/gitignore-formatting.yml | Adds a GitHub Actions workflow that runs pinned formatting checks on all tracked .gitignore files and reports failures with the resulting diff. |
Review effort: Lite (dynamic)
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
wirecat
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Uses pre-commit-hooks tooling to handle linting of trailing whitespace and consistent newlines at the end of files. Uses dos2unix to normalize CRLF line endings while preserving literal carriage returns in gitignore patterns.