2019-01-12 20:30:08 +00:00
|
|
|
#!/bin/bash -e
|
2019-01-16 01:31:51 +00:00
|
|
|
#
|
|
|
|
# script/lint
|
2019-01-19 04:37:51 +00:00
|
|
|
# mas
|
2019-01-16 01:31:51 +00:00
|
|
|
#
|
2021-03-22 02:17:28 +00:00
|
|
|
# Linting checks for development and CI.
|
2019-01-16 01:31:51 +00:00
|
|
|
#
|
2019-01-12 20:30:08 +00:00
|
|
|
|
|
|
|
echo "==> 🚨 Linting mas"
|
|
|
|
|
2021-03-22 02:17:28 +00:00
|
|
|
echo "--> 🌳 Git"
|
|
|
|
git diff --check
|
|
|
|
|
2019-01-16 01:15:55 +00:00
|
|
|
echo
|
|
|
|
echo "--> 🕊️ Swift"
|
2021-03-22 02:19:27 +00:00
|
|
|
swiftlint lint --fix --strict
|
2019-01-16 01:15:55 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "--> 📜 Bash"
|
2021-03-21 23:50:09 +00:00
|
|
|
shfmt -i 2 -l -w contrib/ script/
|