-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add copyloopvar as a linter and auto fix #4608
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
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.
I'm not quite sure we really want the new lines it added in a few cases, but that's not very relevant, so it's alright! 👌🏻
d3dfc08
to
c2c1d72
Compare
The base branch was changed.
All done now |
Is it fixed now? Or there's still manual work remaining? 🤔 |
@joanlopez this was for hte previous cycle, as I started it after golangci update , but as I mentioned the autofixer didn't fix a lot of the cases, so I had to go do them manually. But it is all done now |
Great! 👏🏻 |
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.
LGTM 🚀
What?
Add copyloopvar as a linter and autofix its issues
Why?
This removes pre 1.22 copying of values in a lot of tests with table tests and make them more modern and slightly shorter.
Checklist
make check
) and all pass.Checklist: Documentation (only for k6 maintainers and if relevant)
Please do not merge this PR until the following items are filled out.
Related PR(s)/Issue(s)