-
Notifications
You must be signed in to change notification settings - Fork 673
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
[RFE] Implement transform (--write) functionality for applicable rules #3634
Comments
Maybe it would be best to stabilise the See #3603, #3583, #3226, #2941, #2112. Rule transforms should make the minimal amount of changes to the file that fixes the problem. Loading the whole file in memory and writing it back means all the formatting is lost which is (at least in my opinion) really problematic. |
I have implementations for a variety of rules, but I held off putting them in until I could the the Jinja formatter. Sadly, work priorities have kept me away from this project for awhile but I hope to return to it. I just don't have a precise timeline. |
@bendem Thanks for linking the related issues. We are looking into fixing those issues. @cognifloyd A big thank you for contributing the transform feature. Can you please do a draft PR for rules that you have implemented the transform functionality? We can look into missing rules to implement the transform functionality. |
This is releated, we might want to take care of this prior to too many additions. |
@cognifloyd Thanks so much for your effort in implementing the transform features from Ansible Lint. As we're currently focusing on implementing transform capabilities for one's that's mentioned in the issue description, it'd be great if you can comment ASAP with the transform capabilities that you've already worked on, as that'd help us in not duplicating the work and the effort. |
I am going to close this as done as all the MUST have were implemented. This does not mean that we will not want to do the others, but we should consider this epic done for now. Many of the ones that were not implemented were for good reasons: there is no safe way to do it programetely, a human needing to tune the result. |
Summary
Implement write functionality for the rules in the below list as applicable.
Must have:
command-instead-of-shell
rule #3675deprecated-local-action
rule #3689jinja[spacing]
rule #3691key-order[task]
rule #3705no-free-form
rule #3725no-jinja-when
rule #3721no-log-password
rule #3708partial-become
rule #3692Good to have:
Won't do:
deprecated-bare-vars
rule #3688no-handler
rule #3732The text was updated successfully, but these errors were encountered: