Skip to content

ci: ansible-lint - ignore var-naming[no-role-prefix]#105

Merged
richm merged 1 commit intomainfrom
var-naming-no-role-prefix
Jul 12, 2023
Merged

ci: ansible-lint - ignore var-naming[no-role-prefix]#105
richm merged 1 commit intomainfrom
var-naming-no-role-prefix

Conversation

@richm
Copy link
Copy Markdown
Contributor

@richm richm commented Jul 12, 2023

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 rmeggins@redhat.com

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 <rmeggins@redhat.com>
@richm richm requested a review from Jakuje as a code owner July 12, 2023 18:53
@richm richm merged commit bfdf66c into main Jul 12, 2023
@richm richm deleted the var-naming-no-role-prefix branch July 12, 2023 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant