Skip to content

Lint top level members in tests libraries if they are not used in the library itself #57580

Closed
@alexeieleusis

Description

@alexeieleusis

Right now the analyzer won't warn if a top level member is not used within the library, there is no reason for such members to live in the library.

It could either be extended to all libraries that have a main method or somehow determine what a tests library is, probably something that imports package test, has a main, group and test invocation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions