sindresorhus/refined-github


The issue has been closed
whitespace changes in PRs: count, highlight, etc #2775
diesalbla posted onGitHub
There are ongoing issues about displaying (or hiding) whitespace changes in the diffs of Pull Requests.
On that part of the functionality, perhaps some of the following changes may be found helpful by many developers.
- Together with the "Lines added" and "lines deleted" counters, introduce a special counter for lines with only whitespace changes... e.g. instead of
+15 -22
, use+10, w5, -17
. - In the diff view of Pull Requests, use a different colour for highlighting lines with only whitespace changes, such as softer forms of red and green, or a form of blue.
- (Advanced): If several contiguous lines have a similar change of whitespace (indentation), then some symbol overlied could be used to indicate so. This symbol could be like the one used in LibreOffice, for indentation.
- (Advanced) In addition to the above, apart from changes of whitespace-characters in some lines, it would also be useful to count as whitespace changes the introduction of new empty or whitespace-onlt lines (the ones you can filter with
^\w*$
.
Example URL:
Consider the following Pull Request https://github.com/http4s/http4s/pull/3099/files, which by use of an automatic formatting tool introduces a lot of indentation changes.