Enabling indentation rule for yamllint.

With the exception of release notes, yaml files will
now have to be indented with a consistent number of whitespace chars.

As described:
https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.indentation

Also fixes indentaion for the zuul.d/molecule.yaml.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I280cea451114a0c63bec9ae0f4dc2c85e3d3de90
(cherry picked from commit c1277a5e5c)
This commit is contained in:
Jiri Podivin 2021-06-11 10:30:14 +02:00
parent ef86a8f4fb
commit 92aaa111f4
2 changed files with 12 additions and 10 deletions

View File

@ -5,7 +5,9 @@ rules:
line-length:
# matches hardcoded 160 value from ansible-lint
max: 160
indentation:
spaces: consistent
indent-sequences: true
check-multi-line-strings: false
ignore: |
zuul.d/*.yaml
releasenotes/notes/*.yaml

View File

@ -351,20 +351,20 @@
tripleo_validations_role_name: overcloud_service_status
- job:
files:
- ^roles/check_uc_hostname/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
- ^roles/check_uc_hostname/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-check_uc_hostname
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: check_uc_hostname
- job:
files:
- ^roles/check_for_dangling_images/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
- ^roles/check_for_dangling_images/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-check_for_dangling_images
parent: tripleo-validations-centos-8-base
vars: