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

-Xlint:dentation to debug indentation #141

@som-snytt

Description

@som-snytt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions