Conversation
adomani
commented
Jul 3, 2024
PR summary 931b42b075Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
The fallout of an experiment (#14379) with linting whitespace. To keep the review interesting, I invite you to find the two changes that are not whitespace removal.
|
@grunweg, this is a prototype for the "no whitespace linter"! I won't have time now to fix the spaces around explicit/implicit binders, but if you want to have a look at it, feel free to do so! If you do and you can let me know the false positives, I'd be very grateful! E.g., I'm already aware that the linter does not do the right thing with binders spanning more than one line, but I don't know what other issues it might have. |
|
Thanks for asking! I took a look at the linter errors - the number is quite manageable (perhaps 50 warnings overall).
Here are some things I noticed, with some code examples (you can search the diff to find the relevant place) and what the linter prints for me.
prints
I've pushed the ~10 true fixes to this PR. |
|
Created #14662 as a by-product. |
|
Quick, incomplete reply:
|
|
The shift in print I think boils down to what counts as a "character": some unicode symbols create some issues and I do not really know how to get consistent behaviour. |
Ah, that explains. I wasn't saving the files - usually, that works (until it doesn't). |
|
Michael, thank you so much for the complete report! Here is a more detailed answer.
1+2. I think that these are mostly issues with unsaved changes in a file and using a cached version of the text. 3+4+5+6. These again seem to be caching-related. Conclusions.
|
…ty/mathlib4 into adomani/nowhitespacel
These were found by the linter at #14379. Co-authored-by: Michael Rothgang <[rothgami@math.hu-berlin.de](mailto:rothgami@math.hu-berlin.de)>
|
This evolved into the |