Skip to content

Commit 7038f15

Browse files
committed
feat(yamllint): add .kitchen/ directory to paths to be ignored
* YAML files are copied there during local Kitchen testing
1 parent 6f17c4c commit 7038f15

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ssf/defaults.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ ssf_node_anchors:
176176
- 'node_modules/'
177177
additional_ssf:
178178
- 'test/**/states/**/*.sls'
179+
- '.kitchen/'
179180
additional: []
180181
yaml-files:
181182
default:

ssf/files/default/.yamllint

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ extends: {{ yamllint.extends }}
1717
# Files to ignore completely
1818
# 1. All YAML files under directory `node_modules/`, introduced during the Travis run
1919
# 2. Any SLS files under directory `test/`, which are actually state files
20+
# 3. Any YAML files under directory `.kitchen/`, introduced during local testing
2021
{%- if semrel_formula == 'ssf' %}
21-
# 3. All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
22+
# 4. All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
2223
# Not disabling via. `*.yml` since we may end up with non-Jinja YAML files here
2324
{%- elif semrel_formula == 'mysql' %}
24-
# 3. Any YAML files using Jinja (result in `yamllint` syntax errors)
25+
# 4. Any YAML files using Jinja (result in `yamllint` syntax errors)
2526
{%- elif semrel_formula in ['postgres', 'salt'] %}
26-
# 3. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
27+
# 4. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
2728
{%- endif %}
2829
{%- set yl_ignores = {'ignore':
2930
yamllint.ignore.default +

0 commit comments

Comments
 (0)