Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

-Xlint:dentation to debug indentation #141

Open
som-snytt opened this issue Sep 23, 2020 · 0 comments
Open

-Xlint:dentation to debug indentation #141

som-snytt opened this issue Sep 23, 2020 · 0 comments

Comments

@som-snytt
Copy link

Instead of anticipating many possible ways indentation processing may not match expectation, it would be nice to have a way to lint indentation. -Xlint:dentation. That could be a plug-in that shows an outline view or just -Xprint with indents and outdents highlighted. It could restrict output to regions where warnings/errors were emitted, and just outline previous indents.

Sample where the problematic indentation was not local to the warning/error:
scala/scala3#9515

scala/scala3#9822
scala/scala3#9790
scala/scala3#7800

Showing that -Xprint is the go-to tool:
scala/scala3#8256

It would be great if messaging by the Lintdentator plugin could incorporate some words from the tickets:
Surprising? Perhaps! or Not weird at all!
Because Lindt is the chocolate, there might be a better pun on Lindtentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant