Only format check tracked files

This commit is contained in:
James Shubin
2016-02-08 11:57:37 -05:00
parent 028fb1c258
commit e342c5a06a
2 changed files with 2 additions and 13 deletions

View File

@@ -17,12 +17,7 @@ fi
cd "${ROOT}" cd "${ROOT}"
find_files() { find_files() {
find . -not \( \ git ls-files | grep '\.go$'
\( \
-wholename './old' \
-o -wholename './tmp' \
\) -prune \
\) -name '*.go'
} }
GOFMT="gofmt" # we prefer to not use the -s flag, which is pretty annoying... GOFMT="gofmt" # we prefer to not use the -s flag, which is pretty annoying...

View File

@@ -26,13 +26,7 @@ $RUBY -e "require 'yaml'" 2>/dev/null || (
cd "${ROOT}" cd "${ROOT}"
find_files() { find_files() {
find . -not \( \ git ls-files | grep '\.yaml$'
\( \
-wholename './old' \
-o -wholename './tmp' \
-o -wholename './omv.yaml' \
\) -prune \
\) -name '*.yaml'
} }
bad_files=$( bad_files=$(