diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-08-16 04:32:39 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-08-16 04:32:39 -0500 |
commit | 82306ca849c0710209e5a39754f446d0335a276d (patch) | |
tree | 8d297400e5c36357b9147401631e653e035283d3 /test/ws_scan.sh | |
parent | 21a53faf18b01a65a341115000e97d70b37c750c (diff) | |
parent | 9a9db98089717990cd5e0eef529f6bb0819ebe46 (diff) |
Updated version 0.5.1+git20170815 from 'upstream/0.5.1+git20170815'
with Debian dir 36bf8e7e43d9f6621a63c79a597af2f4f76271b7
Diffstat (limited to 'test/ws_scan.sh')
-rw-r--r-- | test/ws_scan.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ws_scan.sh b/test/ws_scan.sh new file mode 100644 index 00000000..d22586f8 --- /dev/null +++ b/test/ws_scan.sh @@ -0,0 +1,11 @@ +#!bash + +# checks for mixed indentation and empty lines with whitespace +# run from test/ + +cd .. +grep -lHIrP --include=*.{h,c} -- '^((\t+ +)|( +\t+)|\s+$)' | sed 's/^/- [ ] /' > test/hardinfo-bad.txt +grep -LHIrP --include=*.{h,c} -- '^((\t+ +)|( +\t+)|\s+$)' | sed 's/^/- [x] /' > test/hardinfo-good.txt +cat test/hardinfo-bad.txt test/hardinfo-good.txt | LC_ALL=C sort -k 1.5 | grep -vP " (test|build|deps)" +rm test/hardinfo-bad.txt test/hardinfo-good.txt +cd test |