Description
Your feature request related to a problem? Please describe.
I want to encourage people to fix linting errors in their repos without requiring them to fix every single error in the whole repo at once. New-From-rev seems like it would be good for this, except that it's too narrowly focused. It forces you to fix linting errors on any lines you change or new code you add... but if you never touch other lines of code, it'll never bug you about fixing them.
I'd like a version of new-from-rev where it'll show all linting errors from any file you touch. That way the ripple effects go a lot further, and you'll be a lot more likely to fix more things as you go along.
Describe the solution you'd like.
I figure this could be an almost copy and paste of the new-from-rev code, except any matches in files that have been touched are shown.
Describe alternatives you've considered.
You could have a script that makes a fake patch that includes the full code of all the lines in the PR and use new-from-patch, but that seems like a huge hack that might be prone to breaking.
Additional context.
I am willing to code this up if people think it's a good idea.