asdf/scripts/format.bash

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
653 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
# check .sh files
# TODO(jthegedus): unlock this check later
# TODO shfmt --language-dialect posix --indent 2 --write \
# TODO asdf.sh \
# TODO lib/*.sh
# check .bash files
shfmt --language-dialect bash --indent 2 --write \
completions/*.bash \
bin/asdf \
bin/private/asdf-exec \
lib/utils.bash \
lib/commands/*.bash \
lib/functions/*.bash \
scripts/*.bash \
test/test_helpers.bash \
test/fixtures/dummy_broken_plugin/bin/* \
test/fixtures/dummy_legacy_plugin/bin/* \
test/fixtures/dummy_plugin/bin/*
# check .bats files
shfmt --language-dialect bats --indent 2 --write \
test/*.bats