We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 878a27e commit 3cdb08cCopy full SHA for 3cdb08c
.github/workflows/lint.yml
@@ -13,3 +13,21 @@ jobs:
13
node-version: '18'
14
- run: npm install -g markdownlint-cli
15
- run: markdownlint '**/*.md' --ignore-path=.gitignore
16
+ - name: "No trailing whitespaces at EOLs"
17
+ run: |
18
+ EXIT_CODE=0
19
+ git --no-pager grep --full-name -I -n -e ' $' . && EXIT_CODE=1
20
+ exit $EXIT_CODE
21
+ - name: "No tab characters"
22
23
24
+ git --no-pager grep --full-name -I -n -P '\t' . && EXIT_CODE=1
25
26
+ - name: "Newline at EOF"
27
28
29
+ for f in $(git --no-pager grep --full-name -I -l ''); do
30
+ tail -c1 "$f" | read -r _ || echo "$f"
31
+ tail -c1 "$f" | read -r _ || EXIT_CODE=1
32
+ done
33
0 commit comments