@@ -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 +
@@ -83,3 +84,10 @@ rules:
8384 # Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
8485 {%- endif %}
8586 max : {{ yamllint.rules.get('line-length').max }}
87+
88+ {#- Don't need the `if` here since we're always providing a `octal-values` setting # }
89+ octal-values :
90+ {%- set yl_ov = yamllint.rules.get('octal-values') %}
91+ {{- format_ignore(yl_ov) }}
92+ forbid-implicit-octal : {{ yamllint.rules.get('octal-values').get('forbid-implicit-octal') }}
93+ forbid-explicit-octal : {{ yamllint.rules.get('octal-values').get('forbid-explicit-octal') }}
0 commit comments