Skip to content

Commit

Permalink
Rename linter as formatter in script/format.
Browse files Browse the repository at this point in the history
Partial mas-cli#638

Signed-off-by: Ross Goldberg <[email protected]>
  • Loading branch information
rgoldberg committed Nov 24, 2024
1 parent e19bfd0 commit ca1adf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/format
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ fi

printf $'==> 🚨 Formatting mas %s\n' "$(script/version)"

for linter in markdownlint prettier shfmt swift-format swiftformat swiftlint yamllint; do
if [[ ! -x "$(command -v "${linter}")" ]]; then
printf $'error: %s is not installed. Run \'script/bootstrap\' or \'brew install %s\'.\n' "${linter}" "${linter}" >&2
for formatter in markdownlint prettier shfmt swift-format swiftformat swiftlint yamllint; do
if [[ ! -x "$(command -v "${formatter}")" ]]; then
printf $'error: %s is not installed. Run \'script/bootstrap\' or \'brew install %s\'.\n' "${formatter}" "${formatter}" >&2
exit 1
fi
done
Expand Down

0 comments on commit ca1adf1

Please sign in to comment.