Merge pull request #5350 from shuujii/refine-checking-for-trailing-whitespace

Refine checking for trailing whitespace [skip travis][skip appveyor]
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-02-15 13:49:52 +09:00
committed by GitHub
2 changed files with 1 additions and 16 deletions
+1 -3
View File
@@ -32,9 +32,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: 🧹 Check for trailing whitespace
run: |
cd test || exit
sh ./check-for-trailing-whitespace.sh || exit 1
run: "! git grep -EIn $'[ \t]+$'"
yamllint:
name: 🍶 YAML
runs-on: ubuntu-latest
-13
View File
@@ -1,13 +0,0 @@
#!/usr/bin/env bash
cd .. || exit
# print first
grep -EHInr '( +)$' ./*
var=$(grep -EHInr '( +)$' ./*)
# then exit with fail if found
if test -z "$var"; then
exit 0
else
exit 1
fi