File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 56
56
before_install : skip
57
57
script :
58
58
# 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/postgres.sls
59
+ # Need at least `v1.17.0` for the `yaml-files` setting
60
+ - pip install --user yamllint>=1.17.0
61
+ - yamllint -s .
62
62
# Install and run `commitlint`
63
63
- npm install @commitlint/config-conventional -D
64
64
- npm install @commitlint/travis-cli -D
Original file line number Diff line number Diff line change @@ -6,17 +6,31 @@ 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. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
9
+ # 2. Any SLS files under directory `test/`, which are actually state files
10
+ # 3. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
10
11
ignore : |
11
12
node_modules/
13
+ test/**/states/**/*.sls
12
14
pillar.example
13
15
postgres/codenamemap.yaml
14
16
postgres/osfamilymap.yaml
15
17
postgres/osmap.yaml
16
18
postgres/repo.yaml
17
19
test/salt/pillar/postgres.sls
18
20
21
+ yaml-files :
22
+ # Default settings
23
+ - ' *.yaml'
24
+ - ' *.yml'
25
+ - .yamllint
26
+ # SaltStack Formulas additional settings
27
+ - ' *.example'
28
+ - test/**/*.sls
29
+
19
30
rules :
31
+ empty-values :
32
+ forbid-in-block-mappings : true
33
+ forbid-in-flow-mappings : true
20
34
line-length :
21
35
# Increase from default of `80`
22
36
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
You can’t perform that action at this time.
0 commit comments