chore 📦: Add .ansible-lint config to exclude paths and enable rules
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This commit adds a new `.ansible-lint` configuration file to specify which paths to exclude from linting and enables specific rules for better code quality.
This commit is contained in:
31
.ansible-lint
Normal file
31
.ansible-lint
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# .ansible-lint
|
||||||
|
|
||||||
|
exclude_paths:
|
||||||
|
- .gitea
|
||||||
|
|
||||||
|
# Ansible-lint does not automatically load rules that have the 'opt-in' tag.
|
||||||
|
|
||||||
|
# You must enable opt-in rules by listing each rule 'id' below.
|
||||||
|
|
||||||
|
enable_list:
|
||||||
|
- args
|
||||||
|
- empty-string-compare # opt-in
|
||||||
|
- no-log-password # opt-in
|
||||||
|
- no-same-owner # opt-in
|
||||||
|
- name[prefix] # opt-in
|
||||||
|
- galaxy-version-incorrect # opt-in
|
||||||
|
# add yaml here if you want to avoid ignoring yaml checks when yamllint
|
||||||
|
# library is missing. Normally its absence just skips using that rule.
|
||||||
|
- yaml
|
||||||
|
# List of additional kind:pattern to be added at the top of the default
|
||||||
|
# match list, first match determines the file kind.
|
||||||
|
kinds:
|
||||||
|
- playbook: "**/playbooks/*.{yml,yaml}"
|
||||||
|
- roles: "**/roles/*.{yml,yaml}"
|
||||||
|
# - galaxy: "**/folder/galaxy.yml"
|
||||||
|
- tasks: "**/tasks/*.yml"
|
||||||
|
- vars: "**/*vars/*.yml"
|
||||||
|
- meta: "**/meta/main.yml"
|
||||||
|
- yaml: "**/*.yaml-too"
|
||||||
Reference in New Issue
Block a user