Skip to content

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

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

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

Conversation

@richm
Copy link
Copy Markdown
Collaborator

@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>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 12, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (f14a6fa) 72.66% compared to head (ece3449) 72.66%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #161   +/-   ##
=======================================
  Coverage   72.66%   72.66%           
=======================================
  Files           1        1           
  Lines         450      450           
=======================================
  Hits          327      327           
  Misses        123      123           
Flag Coverage Δ
sanity ∅ <ø> (?)

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.

@richm richm merged commit 1b073eb into main Jul 12, 2023
@richm richm deleted the var-naming-no-role-prefix branch July 12, 2023 21:38
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