Skip to content
Snippets Groups Projects
Commit a5310b0a authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

pre-commit: Exclude env_*.yml files from ansible-lint.

As of September, 2021, Ansible-lint cannot evaluate task files which
included through `include_tasks`, as it fails syntax-check.

This change exclude evaluation of these files (`env_*`) when evaluating
files before commit (pre-commit).
parent 279ac60a
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ repos: ...@@ -7,6 +7,7 @@ repos:
always_run: false always_run: false
pass_filenames: true pass_filenames: true
files: \.(yaml|yml)$ files: \.(yaml|yml)$
exclude: /env[^/]*.(yaml|yml)$
entry: | entry: |
env ANSIBLE_LIBRARY=./plugins/modules ANSIBLE_MODULE_UTILS=./plugins/module_utils ANSIBLE_DOC_FRAGMENT_PLUGINS=./plugins/doc_fragments ansible-lint env ANSIBLE_LIBRARY=./plugins/modules ANSIBLE_MODULE_UTILS=./plugins/module_utils ANSIBLE_DOC_FRAGMENT_PLUGINS=./plugins/doc_fragments ansible-lint
- repo: https://github.com/adrienverge/yamllint.git - repo: https://github.com/adrienverge/yamllint.git
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment