Commit a78cbdf
ci: add line-endings check as a parallel verify job
Add a new `line-endings` job to `verify.yml` that runs alongside
`pmd`, `checkstyle`, and `maven-verify`. It uses `git ls-files --eol`
to check every text file in the index is stored as LF, exempting the
`.bat`/`.cmd`/`.ps1` extensions that `.gitattributes` keeps on CRLF
for Windows compatibility.
The check is redundant with Git's own clean filter (which normalizes
on commit per `.gitattributes: * text=auto eol=lf`) but catches two
gaps:
* A file that Git's `text=auto` heuristic misclassifies as binary
(e.g., an early null byte) silently keeps whatever line endings it
was committed with.
* A filter-bypass via `--literally` or a custom hook path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7069be3 commit a78cbdf
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
31 | 49 | | |
32 | 50 | | |
33 | 51 | | |
| |||
0 commit comments