Ask HN: How to efficiently review a pull request that is full of linter changes?
Any tips to review a large pull request consisting of 1k lines changed all due to a new linter being applied.
Any tips to review a large pull request consisting of 1k lines changed all due to a new linter being applied.
Anyway, the solution is to ask nicely that the author rewrites the PR with the relevant changes, and then make another PR with the new linter. (Which linter to use, is a project-wide decision. Who is in charge of this?)
Is this a good idea?!?! I don't know golang. Can you show an example where this change is useful? (Or a link to a webpage that explains this change.) [Sorry for the side question, but I'm curious.]
It changes the initialisation order - it's not a problem but hard to review.
But still a very indirect approach
My totally uninformed opinion is to run away from a linter that makes that changes.
Run the new linter on all the files. Don't make any other changes. Spot check a few places to make sure the linter doesn't majorly mess anything up. Make sure your automated tests still pass. Merge this change without reviewing every single line.
Now that all your files are "clean", continue making changes and reviewing them like normal.