mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
🚨📜 Add shellcheck
This commit is contained in:
parent
d5b061ab9f
commit
fc1211f643
4 changed files with 23 additions and 6 deletions
11
.hound.yml
11
.hound.yml
|
@ -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
8
.shellcheck.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# .shellcheck.yml
|
||||
# mas-cli
|
||||
#
|
||||
#
|
||||
---
|
||||
exclude:
|
||||
- script/sort.pl
|
1
Brewfile
1
Brewfile
|
@ -1,2 +1,3 @@
|
|||
brew "carthage"
|
||||
brew "shellcheck"
|
||||
brew "swiftlint"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue