mas/script/lint
2019-01-18 21:37:51 -07:00

20 lines
313 B
Bash
Executable file

#!/bin/bash -e
#
# script/lint
# mas
#
# Linting checks for CI "Lint" stage.
#
echo "==> 🚨 Linting mas"
echo
echo "--> 🕊️ Swift"
swiftlint lint --strict
echo
echo "--> 📜 Bash"
shopt -s extglob
# Only lint files with no extension (skipping .pl)
shellcheck --shell=bash script/!(*.*)
shopt -u extglob