Only format check tracked files
This commit is contained in:
@@ -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...
|
||||||
|
|||||||
@@ -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=$(
|
||||||
|
|||||||
Reference in New Issue
Block a user