in my case it is a massive legacy codebase that I don’t actually control
i get very sporadic deliveries of it and I’ve version controlled them into a jank progression
the original is in clearcase with now git on top of it and my version control is in svn
there are very shitty unresolvable reasons for all of this
but this last update was especially bad as one of their new coders is super fucking OCD and rejustifying headers and footers and fucking comments, so whitespace shit in files he is not editing code in otherwise, so that is like 300-500 files not lines
I have vim setup to trim trailing white space, I get so pissed when a small change results in a 300 line diff because of poor code hygiene.
Do ya’ll just not use linters?
in my case it is a massive legacy codebase that I don’t actually control
i get very sporadic deliveries of it and I’ve version controlled them into a jank progression
the original is in clearcase with now git on top of it and my version control is in svn
there are very shitty unresolvable reasons for all of this
but this last update was especially bad as one of their new coders is super fucking OCD and rejustifying headers and footers and fucking comments, so whitespace shit in files he is not editing code in otherwise, so that is like 300-500 files not lines
i want to break a knee cap
Linters won’t necessarily help. You also need a code formatter that screams at you if you intent badly.
Linters aren’t MVP my dude
https://github.com/axelf4/vim-strip-trailing-whitespace
There are plugins that will only trim modified lines, which resolves that issue
That’s a nice idea
Probably a bit more sophisticated than my regex solution.