mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 20:48:30 +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"
|
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"
|
echo "--> 🌳 Git"
|
||||||
git diff --check
|
git diff --check
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue