Skip to content

Commit ceede5d

Browse files
committed
ci: ansible-lint - ignore var-naming[no-role-prefix]
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]>
1 parent 4b65d6a commit ceede5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.ansible-lint

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ kinds:
1414
- playbook: "**/examples/*.yml"
1515
skip_list:
1616
- fqcn-builtins
17+
- var-naming[no-role-prefix]
1718
exclude_paths:
1819
- tests/roles/
1920
- .github/

0 commit comments

Comments
 (0)