Skip to content

Commit

Permalink
ci: ansible-lint - ignore var-naming[no-role-prefix]
Browse files Browse the repository at this point in the history
ansible-lint has recently added a check for this.  It flags a lot of our test
code, and some of our role code that uses nested roles.
There is no easy way to disable it for these cases only.  It would be a
tremendous amount of work to add `# noqa` comments everywhere.
The use of `.ansible-lint-ignore` would be a maintenance burden (cannot use
tests/tests_*.yml or other similar wildcard to match all test files), would
still issue a lot of warning messages, and would not solve all of the problems.
The only way for now is to skip this rule.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Jul 13, 2023
1 parent d95e590 commit a9dd880
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ kinds:
- playbook: "**/examples/*.yml"
skip_list:
- fqcn-builtins
- var-naming[no-role-prefix]
exclude_paths:
- tests/roles/
- .github/
Expand Down

0 comments on commit a9dd880

Please sign in to comment.