Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Oct 3, 2024
1 parent 41354a8 commit 9c525a9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# https://ansible-lint.readthedocs.io/en/latest/default_rules/
exclude_paths:
- galaxy_roles/

skip_list:
- experimental # all rules tagged as experimental
- var-naming[no-role-prefix]
...
39 changes: 39 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# https://yamllint.readthedocs.io/en/stable/rules.html
extends: default
ignore: |
.tox/
.cache

rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
comments:
# https://github.com/prettier/prettier/issues/6780
min-spaces-from-content: 1
# https://github.com/adrienverge/yamllint/issues/384
comments-indentation: false
document-start: disable
indentation:
indent-sequences: consistent
spaces: 2
level: error
line-length:
max: 160
level: warning
key-duplicates: enable
new-line-at-end-of-file: enable
new-lines:
type: unix
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true
trailing-spaces: enable
truthy:
allowed-values: ['true', 'false']
check-keys: false
...

0 comments on commit 9c525a9

Please sign in to comment.