X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/9bd91a76e6277f7716e206ddb665dc5fe6f5b583..3bf0f670487e571a0525844a6c00de495b8a465a:/bin/check?ds=sidebyside diff --git a/bin/check b/bin/check index 3bca026..73256cb 100755 --- 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 @@ -19,4 +19,4 @@ go test -race -short ./... 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