mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user