]> git.giacomolli.uk - onechat/blobdiff - bin/check
Log image and message sends
[onechat] / bin / check
index 3bca02623eb87d6b8720e944e01be5de2e0e4b9b..73256cb682e87ad835add38947fa9e318ac5e4b0 100755 (executable)
--- a/bin/check
+++ b/bin/check
@@ -7,7 +7,7 @@ files() {
   git ls-files --cached --others --exclude-standard -- "$@"
 }
 
   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
 if [ -n "$unformatted" ]; then
   printf 'gofumpt: unformatted files:\n%s\n' "$unformatted" >&2
   exit 1
@@ -19,4 +19,4 @@ go test -race -short ./...
 files '*.nix' | xargs nixfmt --check
 files '*.rst' | xargs rstfmt --check
 files '*.md' | xargs mdformat --check
 files '*.nix' | xargs nixfmt --check
 files '*.rst' | xargs rstfmt --check
 files '*.md' | xargs mdformat --check
-shellcheck bin/check bin/format bin/reflow .githooks/commit-msg
+shellcheck bin/check bin/format bin/reflow bin/service-update .githooks/commit-msg