Configure linters

This commit is contained in:
Wojciech Kozlowski 2022-12-21 11:27:56 +01:00
parent 466fb54aab
commit ac7405204a
2 changed files with 45 additions and 0 deletions

7
.ansible-lint Normal file
View File

@ -0,0 +1,7 @@
---
skip_list:
- no-handler
- git-latest
- no-changed-when
- meta-no-info
- yaml

38
.yamllint Normal file
View File

@ -0,0 +1,38 @@
---
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
ignore: |
vault.yml
rules:
braces: enable
brackets: enable
colons: enable
commas: enable
comments:
level: warning
comments-indentation:
level: warning
document-end: disable
document-start:
level: warning
empty-lines: enable
empty-values: disable
float-values: disable
hyphens: enable
indentation: enable
key-duplicates: enable
key-ordering: disable
line-length:
max: 100
new-line-at-end-of-file: enable
new-lines: enable
octal-values: disable
quoted-strings: disable
trailing-spaces: enable
truthy:
level: warning