mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🧹 Emit a warning when a linter is not installed
This commit is contained in:
parent
44f9a42f27
commit
af944e8caf
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,13 @@
|
|||
|
||||
echo "==> 🚨 Linting mas"
|
||||
|
||||
for LINTER in swift-format swiftformat swiftlint; do
|
||||
if [[ ! -x "$(command -v ${LINTER})" ]]; then
|
||||
echo "warning: ${LINTER} is not installed: script/bootstrap"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "--> 🌳 Git"
|
||||
git diff --check
|
||||
|
||||
|
|
Loading…
Reference in a new issue