marcopaganini/check-trailing-spaces
Check files for trailing spaces, empty lines at EOF and missing newline at EOF.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| check_all_files | Check all files, not only those changed by the PR. | no | 0 |
| check_empty_line_at_eof | Make sure the last line in a file is not empty. | no | 1 |
| check_missing_newline_at_eof | Make sure the last line in the file ends in a newline character. | no | 1 |
| ignore_regex | Ignore files matching this regular expression (full path, see man find, -regex). | no | "" |
| source_directory | Directory to check (overrides current directory). | no | . |
| pr_number | The PR number to check. | no | ${{ github.event.pull_request.number }} |
| token | GitHub token used to authenticate API requests. Defaults to the built-in GITHUB_TOKEN. | no | ${{ github.token }} |
| changed_files | A newline-separated list of files to check. When provided, skips the GitHub API call entirely. Useful for private repositories or when you already have the list of changed files. | no | "" |
Outputs
no outputs