]> git.giacomolli.uk - onechat/blobdiff - bin/check
Name timeouts for the operations they limit
[onechat] / bin / check
index 4bd9b5c6b14ef19f161ff5c524fd1eb4cce75602..73256cb682e87ad835add38947fa9e318ac5e4b0 100755 (executable)
--- a/bin/check
+++ b/bin/check
@@ -7,7 +7,7 @@ files() {
   git ls-files --cached --others --exclude-standard -- "$@"
 }
 
-unformatted=$(gofumpt -l .)
+unformatted=$(files '*.go' | xargs gofumpt -l)
 if [ -n "$unformatted" ]; then
   printf 'gofumpt: unformatted files:\n%s\n' "$unformatted" >&2
   exit 1