From 9a9db98089717990cd5e0eef529f6bb0819ebe46 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Wed, 16 Aug 2017 04:32:39 -0500 Subject: New upstream version 0.5.1+git20170815 --- test/ws_scan.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/ws_scan.sh (limited to 'test/ws_scan.sh') 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 -- cgit v1.2.3