3 cd "$(dirname "$0")/.."
5 # Lists the tracked and the new, not ignored files that match a pattern.
7 git ls-files --cached --others --exclude-standard -- "$@"
10 unformatted=$(gofumpt -l .)
11 if [ -n "$unformatted" ]; then
12 printf 'gofumpt: unformatted files:\n%s\n' "$unformatted" >&2
19 files '*.nix' | xargs nixfmt --check
20 files '*.rst' | xargs rstfmt --check
21 files '*.md' | xargs mdformat --check
22 shellcheck bin/check bin/format bin/reflow .githooks/commit-msg