mas/script/lint
2021-03-28 14:21:14 -07:00

23 lines
402 B
Bash
Executable file

#!/bin/bash -e
#
# script/lint
# mas
#
# Linting checks for development and CI.
#
echo "==> 🚨 Linting mas"
echo "--> 🌳 Git"
git diff --check
echo
echo "--> 🕊️ Swift"
for SOURCE in mas MasKit MasKitTests; do
swift-format format --in-place --configuration .swift-format --recursive ${SOURCE}
done
swiftlint lint --fix --strict
echo
echo "--> 📜 Bash"
shfmt -i 2 -l -w contrib/ script/