Skip to content

Warning if levels of indentation exceeds, say, 4 #2169

Closed
@tbodt

Description

@tbodt

I'd like to have a warning from Clippy if I write code with more than 4 levels of indentation, to incentivize me to split up complicated functions into less complicated ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-restrictionLint: Belongs in the restriction lint group

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions