File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 5656 before_install : skip
5757 script :
5858 # Install and run `yamllint`
59- - pip install --user yamllint
60- # yamllint disable-line rule:line-length
61- - yamllint -s . .yamllint pillar.example test/salt/pillar/default.sls
59+ # Need at least `v1.17.0` for the `yaml-files` setting
60+ - pip install --user yamllint>=1.17.0
61+ - yamllint -s .
6262 # Install and run `commitlint`
6363 - npm install @commitlint/config-conventional -D
6464 - npm install @commitlint/travis-cli -D
Original file line number Diff line number Diff line change @@ -6,10 +6,24 @@ extends: default
66
77# Files to ignore completely
88# 1. All YAML files under directory `node_modules/`, introduced during the Travis run
9+ # 2. Any SLS files under directory `test/`, which are actually state files
910ignore : |
1011 node_modules/
12+ test/**/states/**/*.sls
13+
14+ yaml-files :
15+ # Default settings
16+ - ' *.yaml'
17+ - ' *.yml'
18+ - .yamllint
19+ # SaltStack Formulas additional settings
20+ - ' *.example'
21+ - test/**/*.sls
1122
1223rules :
24+ empty-values :
25+ forbid-in-block-mappings : true
26+ forbid-in-flow-mappings : true
1327 key-duplicates :
1428 ignore : |
1529 pillar.example
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ postfix:
8989 readme_directory : ' no'
9090 myhostname : localhost
9191 mydestination : localhost, localhost.localdomain
92- relayhost :
92+ relayhost : ' '
9393 mynetworks : 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
9494 mailbox_size_limit : 0
9595 recipient_delimiter : +
You can’t perform that action at this time.
0 commit comments