I need to ensure that lines are no more than 80 characters long and that all variables are final (but this restriction only applies to new code).
Using IntelliJ inspection, is there a way to check only newly-created code? By new, I mean that I've changed the code on a local Git repository, but I haven't pushed yet to remote repository.