X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/80fa33c0fd65e4110f88f0cab9b19ca26c27d1f6..0da50dc187c8b4aa23ac1ddd0418c0da779389d9:/bin/check diff --git a/bin/check b/bin/check index b8071dc..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 @@ -15,8 +15,8 @@ fi go vet ./... golangci-lint run -go test -race ./... +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