Skip to content

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

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

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

Conversation

@richm
Copy link
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 liangwen12year as a code owner July 12, 2023 18:52
@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (104638e) 43.28% compared to head (42adcec) 43.28%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #626   +/-   ##
=======================================
  Coverage   43.28%   43.28%           
=======================================
  Files          13       13           
  Lines        3068     3068           
  Branches      355      355           
=======================================
  Hits         1328     1328           
  Misses       1740     1740           
Flag Coverage Δ
sanity 19.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@liangwen12year liangwen12year left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@richm richm merged commit e16b0e6 into main Jul 13, 2023
@richm richm deleted the var-naming-no-role-prefix branch July 13, 2023 15:36
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.

2 participants