New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade fqcn-builtins rule into fqcn #2505
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ssbarnea Can we also update this doc with FQCN?
This includes changing documentation. |
93bc18d
to
df153ce
Compare
@ssbarnea - why change to action-internal? From an external perspective (aka I don't deal with lint much - when you say fqcn-builtin - I know what you're talking about - the builtin modules in core. Changing it to action-internal, frankly, made me go check to see do we have some 'action plugins' I didn't know about? |
@samccann That was after I had a chat yesterday with @bcoca and looked at the fact that the remediation of the error is to add either Keep in mind that in the near future we will also see If someone ever claims that naming is easy, they should start to contribute to the linter. Sometimes we need to spend more time on naming than in implementing the code for it. |
filters, tests, lookups, strategy .. in the end any plugin that can appear in a playbook |
Ok read the docs section in the PR a bit more. I understand the need to distiguish between |
modules are the code that 'most of the time' runs because of actions, tasks have always had actions:
|
- rename tag from fqcn-builtins to fqcn[builtin] - add alias for old name - update documentation - add fqcn[module] for those that are not using known builtins.
@ssbarnea I have a role (https://github.com/alvistack/ansible-role-ceph_mon) with custom library:
And so I reference my custom library from
With this new rule I could only manage to disable the check for it now with Any suggestion for not doing such skip, but rewrite to a correct syntax with our up-to-date standard? |
* Upgrade fqcn-builtins rule into fqcn - rename tag from fqcn-builtins to fqcn[builtin] - add alias for old name - update documentation - add fqcn[module] for those that are not using known builtins. * dnaro suggestion one * More fixes Co-authored-by: Don Naro <dnaro@redhat.com>
fqcn-builtins
tofqcn[action-core]
and add aliasfqcn[action]
for those that are not using known builtinsfqcn[action-redirect]
for redirects (implementation in follow-up)warn_list