Skip to content

PLR1702: Visually noisy diagnostic ranges #15570

@beauxq

Description

@beauxq

If a function has nested blocks to violate PLR1702, almost the entire function is marked for it, including lines that are not violations.

Even lines that are only nested 2 or 3 deep are marked with squigglies.

Even when there are multiple lines in a block nested 9 deep, I think it would be enough to only mark the first line of that deeply nested block.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingBreaking API changediagnosticsRelated to reporting of diagnostics.needs-designNeeds further design before implementation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions