mas/script/lint

24 lines
402 B
Text
Raw Normal View History

2019-01-12 13:30:08 -07:00
#!/bin/bash -e
2019-01-15 18:31:51 -07:00
#
# script/lint
# mas
2019-01-15 18:31:51 -07:00
#
# Linting checks for development and CI.
2019-01-15 18:31:51 -07:00
#
2019-01-12 13:30:08 -07:00
echo "==> 🚨 Linting mas"
echo "--> 🌳 Git"
git diff --check
2019-01-15 18:15:55 -07:00
echo
echo "--> 🕊️ Swift"
2021-03-21 22:25:18 -07:00
for SOURCE in mas MasKit MasKitTests; do
swift-format format --in-place --configuration .swift-format --recursive ${SOURCE}
done
swiftlint lint --fix --strict
2019-01-15 18:15:55 -07:00
echo
echo "--> 📜 Bash"
2021-03-21 16:50:09 -07:00
shfmt -i 2 -l -w contrib/ script/