Skip to content

Commit

Permalink
feat(yamllint): add .kitchen/ directory to paths to be ignored
Browse files Browse the repository at this point in the history
* YAML files are copied there during local Kitchen testing
  • Loading branch information
myii committed Oct 7, 2019
1 parent 6f17c4c commit 7038f15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ ssf_node_anchors:
- 'node_modules/'
additional_ssf:
- 'test/**/states/**/*.sls'
- '.kitchen/'
additional: []
yaml-files:
default:
Expand Down
7 changes: 4 additions & 3 deletions ssf/files/default/.yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ extends: {{ yamllint.extends }}
# Files to ignore completely
# 1. All YAML files under directory `node_modules/`, introduced during the Travis run
# 2. Any SLS files under directory `test/`, which are actually state files
# 3. Any YAML files under directory `.kitchen/`, introduced during local testing
{%- if semrel_formula == 'ssf' %}
# 3. All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
# 4. All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
# Not disabling via. `*.yml` since we may end up with non-Jinja YAML files here
{%- elif semrel_formula == 'mysql' %}
# 3. Any YAML files using Jinja (result in `yamllint` syntax errors)
# 4. Any YAML files using Jinja (result in `yamllint` syntax errors)
{%- elif semrel_formula in ['postgres', 'salt'] %}
# 3. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
# 4. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
{%- endif %}
{%- set yl_ignores = {'ignore':
yamllint.ignore.default +
Expand Down

0 comments on commit 7038f15

Please sign in to comment.