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}"
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...