mas/script/lint

21 lines
313 B
Text
Raw Normal View History

2019-01-12 20:30:08 +00:00
#!/bin/bash -e
2019-01-16 01:31:51 +00:00
#
# script/lint
# mas
2019-01-16 01:31:51 +00:00
#
# Linting checks for CI "Lint" stage.
#
2019-01-12 20:30:08 +00:00
echo "==> 🚨 Linting mas"
2019-01-16 01:15:55 +00:00
echo
echo "--> 🕊️ Swift"
2019-01-12 20:30:08 +00:00
swiftlint lint --strict
2019-01-16 01:15:55 +00:00
echo
echo "--> 📜 Bash"
shopt -s extglob
# Only lint files with no extension (skipping .pl)
shellcheck --shell=bash script/!(*.*)
shopt -u extglob