diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-06-23 17:44:48 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-06-23 17:44:48 -0400 |
commit | 4bb0b6defdf9f78507ba5646b64c4876f5b429d0 (patch) | |
tree | 3669b9f479d44139a0953c7660ef347857049028 /scripts/travis-build.sh | |
parent | a2c7fd369ccc93593997b4b7901a8164ef4df482 (diff) | |
download | kutter-4bb0b6defdf9f78507ba5646b64c4876f5b429d0.tar.gz kutter-4bb0b6defdf9f78507ba5646b64c4876f5b429d0.tar.xz kutter-4bb0b6defdf9f78507ba5646b64c4876f5b429d0.zip |
check_whitespace: Add script to run whitespace checks
Allow users to run the "travis ci" whitespace check directly from the
command-line.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/travis-build.sh')
-rwxr-xr-x | scripts/travis-build.sh | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh index 1f82b3f2..2cd96631 100755 --- a/scripts/travis-build.sh +++ b/scripts/travis-build.sh @@ -35,14 +35,8 @@ finish_test() # Check for whitespace errors ###################################################################### -WS_DIRS="config/ docs/ klippy/ scripts/ src/ test/" -WS_EXCLUDE="-path scripts/kconfig -prune" -WS_FILES="-o -iname '*.[csh]' -o -name '*.py' -o -name '*.sh'" -WS_FILES="$WS_FILES -o -name '*.md' -o -name '*.cfg'" -WS_FILES="$WS_FILES -o -name '*.test' -o -name '*.config'" -WS_FILES="$WS_FILES -o -iname '*.lds' -o -iname 'Makefile' -o -iname 'Kconfig'" start_test check_whitespace "Check whitespace" -eval find $WS_DIRS $WS_EXCLUDE $WS_FILES | xargs ./scripts/check_whitespace.py +./scripts/check_whitespace.sh finish_test check_whitespace "Check whitespace" |