File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 40
40
before_install : skip
41
41
script :
42
42
# Install and run `yamllint`
43
- - pip install --user yamllint
44
- # yamllint disable-line rule:line-length
45
- - yamllint -s . .yamllint pillar.example test/salt/pillar/repositories.pillar.sls test/salt/pillar/preferences.pillar.sls
43
+ # Need at least `v1.17.0` for the `yaml-files` setting
44
+ - pip install --user yamllint>=1.17.0
45
+ - yamllint -s .
46
46
# Install and run `commitlint`
47
47
- npm install @commitlint/config-conventional -D
48
48
- npm install @commitlint/travis-cli -D
Original file line number Diff line number Diff line change @@ -6,10 +6,24 @@ extends: default
6
6
7
7
# Files to ignore completely
8
8
# 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
9
10
ignore : |
10
11
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
11
22
12
23
rules :
24
+ empty-values :
25
+ forbid-in-block-mappings : true
26
+ forbid-in-flow-mappings : true
13
27
line-length :
14
28
# Increase from default of `80`
15
29
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
You can’t perform that action at this time.
0 commit comments