Rule promotion process #2015
-
fqcn-builtin has been added to default rule set and roles CI are all blinking red. It seems that has been added more than 6 months ago - #1614 I value a lot linting but when possible, it should have advance notice to avoid last minute burden.
In case above, with 3 months as opt-in and 3 months in warning mode, that gives plenty of time for people to notice and remediate. Currently, we are moving from CI lint empty to fail like When you have few roles to maintain and simple, easy. Also documentation should have a recommended ansible-lint config files that emphasize visibility on those newer rules and how to manage best last, my local install of 5.4.0 has not this opt-in rule and currently not updating to 6.0.0 even if visible on pypi. not sure why
maybe because python 3.6.9 (bionic) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
As far as I understand, we will only switch the default set of rules in a major version bump. If you want to avoid changes like this, please pin ansible-lint between major versions, and then test the upgrade before rolling it out in your CI process. You can fix your CI by pinning to ansible-lint<6.0 or you can add the rule you don't want to the either the warn or skip list in your ansible-lint config file. |
Beta Was this translation helpful? Give feedback.
-
As far as your local install issue, yes py3.6 is not supported by ansible-lint 6.0. this is in the release notes:
|
Beta Was this translation helpful? Give feedback.
As far as I understand, we will only switch the default set of rules in a major version bump.
If you want to avoid changes like this, please pin ansible-lint between major versions, and then test the upgrade before rolling it out in your CI process. You can fix your CI by pinning to ansible-lint<6.0 or you can add the rule you don't want to the either the warn or skip list in your ansible-lint config file.