11# -*- coding: utf-8 -*-
22# vim: ft=yaml
33---
4- {%- macro format_ignore(ignore_parent, first_ignores=[], width=4) %}
4+ {%- macro format_ignore(ignore_parent, width=4) %}
55{%- filter indent(width) %}
66{%- if ignore_parent.ignore is defined %}
77ignore : |
8- {%- for first_ignore in first_ignores %}
9- {{ first_ignore }}
10- {%- endfor %}
118 {%- for file in ignore_parent.ignore %}
129 {{ file }}
1310 {%- endfor %}
@@ -19,15 +16,21 @@ extends: {{ yamllint.extends }}
1916
2017# Files to ignore completely
2118# 1. All YAML files under directory `node_modules/`, introduced during the Travis run
19+ # 2. Any SLS files under directory `test/`, which are actually state files
2220{%- if semrel_formula == 'ssf' %}
23- # 2 . All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
21+ # 3 . All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
2422# Not disabling via. `*.yml` since we may end up with non-Jinja YAML files here
2523{%- elif semrel_formula == 'mysql' %}
26- # 2 . Any YAML files using Jinja (result in `yamllint` syntax errors)
24+ # 3 . Any YAML files using Jinja (result in `yamllint` syntax errors)
2725{%- elif semrel_formula == 'postgres' %}
28- # 2 . All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
26+ # 3 . All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
2927{%- endif %}
30- {{- format_ignore(yamllint, first_ignores=['node_modules/'], width=0) }}
28+ {%- set yl_ignores = {'ignore':
29+ yamllint.ignore.default +
30+ yamllint.ignore.additional_ssf +
31+ yamllint.ignore.additional
32+ } %}
33+ {{- format_ignore(yl_ignores, width=0) }}
3134
3235yaml-files :
3336{%- set yl_yf = yamllint.get('yaml-files') %}
0 commit comments