Is there a way to highlight trailing whitespace instead of automatically removing it?
The reason I ask is that I work on a heterogenous codebase where sometimes trailing whitespace is allowed and otherwise not (depending on package ownership). I would like to encourage migration to no-trailing-whitespace, but this requires a transition strategy. If whitespace is automatically removed the diffs for trivial unrelated changes will create confusion during review. Other text editors and IDEs have this “show but don’t change behavior” which can handle these sorts of use cases.