You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently exceptions to ansible-lint are made using the VERY generic directive # noqa [rule]
Since there are so many checkers for code review automation, this is too unspecific.
For example, yamllint uses the directive: # yamllint disable-line rule:<rule>
And we use custom style guide exceptions using the directive: # style-exception ###
ansible-lint should have the option to use a more specific directive that tells what exception this is, rather than just a generic 'noqa'.
For example something like: # ansible-lint exception [rule]
or even # ansible-lint noqa [rule]
This wouldn't be a mandatory change, the existing directive could be still recognized, just allow for those of us that want to use to use something more specific to specify that in the .ansible-lint file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently exceptions to ansible-lint are made using the VERY generic directive
# noqa [rule]
Since there are so many checkers for code review automation, this is too unspecific.
For example, yamllint uses the directive:
# yamllint disable-line rule:<rule>
And we use custom style guide exceptions using the directive:
# style-exception ###
ansible-lint should have the option to use a more specific directive that tells what exception this is, rather than just a generic 'noqa'.
For example something like:
# ansible-lint exception [rule]
or even
# ansible-lint noqa [rule]
This wouldn't be a mandatory change, the existing directive could be still recognized, just allow for those of us that want to use to use something more specific to specify that in the .ansible-lint file.
Beta Was this translation helpful? Give feedback.
All reactions