Skip to content

Support treating any non-internal (non-test) class as part of the public API #11580

@stof

Description

@stof

Many packages don't use @api at all. Instead, anything that is not tagged as @internal is considered part of the public API (this of course excludes test code which is not shipped as part of the public package).

It would be great to have a configuration setting to change how Psalm defines the public API, to make it usable in such packages.
My current approach is that I have to identify issue handlers that I need to suppress because the rules rely on the definition of the public API, which is fragile and also suppresses those errors for internal classes.

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