🚨📜 Add shellcheck

This commit is contained in:
Ben Chatelain 2019-01-15 18:15:55 -07:00
parent d5b061ab9f
commit fc1211f643
4 changed files with 23 additions and 6 deletions

View file

@ -5,13 +5,12 @@
# http://help.houndci.com/configuration/swiftlint
#
---
excluded:
- Carthage/
- docs/
- MasKitTests/
fail_on_violations: true
erblint:
enabled: false
shellcheck:
enabled: true
config_file: .shellcheck.yml
swiftlint:
enabled: true
config_file: .swiftlint.yml

8
.shellcheck.yml Normal file
View file

@ -0,0 +1,8 @@
#
# .shellcheck.yml
# mas-cli
#
#
---
exclude:
- script/sort.pl

View file

@ -1,2 +1,3 @@
brew "carthage"
brew "shellcheck"
brew "swiftlint"

View file

@ -2,4 +2,13 @@
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