mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 19:43:09 +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
|
# http://help.houndci.com/configuration/swiftlint
|
||||||
#
|
#
|
||||||
---
|
---
|
||||||
excluded:
|
fail_on_violations: true
|
||||||
- Carthage/
|
|
||||||
- docs/
|
|
||||||
- MasKitTests/
|
|
||||||
|
|
||||||
erblint:
|
erblint:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
shellcheck:
|
||||||
|
enabled: true
|
||||||
|
config_file: .shellcheck.yml
|
||||||
swiftlint:
|
swiftlint:
|
||||||
|
enabled: true
|
||||||
config_file: .swiftlint.yml
|
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 "carthage"
|
||||||
|
brew "shellcheck"
|
||||||
brew "swiftlint"
|
brew "swiftlint"
|
||||||
|
|
|
@ -2,4 +2,13 @@
|
||||||
|
|
||||||
echo "==> 🚨 Linting mas"
|
echo "==> 🚨 Linting mas"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "--> 🕊️ Swift"
|
||||||
swiftlint lint --strict
|
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