openstack-helm-addons/yamllint.conf
Andrii Ostapenko 815deeaa2e Enable templates linting
- braces
- brackets
- colons
- commas
- comments
- hyphens
- indentation
- key-duplicates

with corresponding code changes.

Also disable document-(start|end) rule.

* Unrestrict octal values rule since benefits of file modes readability
  exceed possible issues with yaml 1.2 adoption in future k8s versions.
  These issues will be addressed when/if they occur.

Depends-On: https://review.opendev.org/739600
Change-Id: Ide884ed541898db2ba21a863aff0cea9ec3f75dd
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2020-07-13 17:28:42 +00:00

33 lines
578 B
Plaintext

---
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
rules:
braces: enable
brackets: enable
colons: enable
commas: enable
comments: enable
comments-indentation: enable
document-end: disable
document-start: disable
empty-lines: enable
empty-values: disable
hyphens: enable
indentation:
spaces: 2
indent-sequences: whatever
key-duplicates: enable
key-ordering: disable
line-length: disable
new-line-at-end-of-file: enable
new-lines: enable
octal-values: disable
quoted-strings: disable
trailing-spaces: enable
truthy: disable
...