Skip to content

Commit e2e14a2

Browse files
committed
Add trailing whitespace pre-commit check
1 parent d0e9c41 commit e2e14a2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@ repos:
55
name: Copyright check
66
language: system
77
entry: mx python-checkcopyrights --assumed-modified --fix --files
8+
types: [text]
89
- id: eclipseformat
910
name: Eclipse formatter
1011
language: system
1112
entry: bash scripts/pre-commit-eclipseformat.sh
13+
types: [text]
1214
files: '\.java$'
1315
- id: checkstyle
1416
name: Checkstyle
1517
language: system
1618
entry: bash scripts/pre-commit-checkstyle.sh
19+
types: [text]
1720
files: '\.java$'
21+
- repo: https://github.com/pre-commit/pre-commit-hooks
22+
rev: v5.0.0
23+
hooks:
24+
- id: trailing-whitespace
25+
name: Trim Trailing Whitespace
26+
entry: trailing-whitespace-fixer
27+
language: python
28+
types: [text]
29+
files: '\.(java|py|md|c|h|sh)$'

0 commit comments

Comments
 (0)