Only format check tracked files
This commit is contained in:
@@ -17,12 +17,7 @@ fi
|
||||
cd "${ROOT}"
|
||||
|
||||
find_files() {
|
||||
find . -not \( \
|
||||
\( \
|
||||
-wholename './old' \
|
||||
-o -wholename './tmp' \
|
||||
\) -prune \
|
||||
\) -name '*.go'
|
||||
git ls-files | grep '\.go$'
|
||||
}
|
||||
|
||||
GOFMT="gofmt" # we prefer to not use the -s flag, which is pretty annoying...
|
||||
|
||||
@@ -26,13 +26,7 @@ $RUBY -e "require 'yaml'" 2>/dev/null || (
|
||||
cd "${ROOT}"
|
||||
|
||||
find_files() {
|
||||
find . -not \( \
|
||||
\( \
|
||||
-wholename './old' \
|
||||
-o -wholename './tmp' \
|
||||
-o -wholename './omv.yaml' \
|
||||
\) -prune \
|
||||
\) -name '*.yaml'
|
||||
git ls-files | grep '\.yaml$'
|
||||
}
|
||||
|
||||
bad_files=$(
|
||||
|
||||
Reference in New Issue
Block a user