X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/49566fe4e40a18434320829c5cb6a6eff1b4ec78..195c3fbb075383ac47bba310eb701b02774e8d10:/bin/check?ds=sidebyside diff --git a/bin/check b/bin/check index 4bd9b5c..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