Skip to content

Dead code detection #2829

@MatthewMckee4

Description

@MatthewMckee4

vulture does a decent job at this. clippy does an amazing job at this.

We don't want to emit this for 'public' methods. I don't know if we just want to check __all__, or if we want to be more lenient, personally I think an option to say I don't want to export anything, so the rule is very pedantic would be great, and the other side of that is maybe only complaining about 'private' (prefixed with '_') methods that are unused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lintLabel for features that we would implement as lint rules, not core type checker featureswishNot on the current roadmap; maybe in the future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions