Skip to content

Suggest rule: Class cannot be public. #2943

Closed
@VovaStelmashchuk

Description

@VovaStelmashchuk

I suggest add rule: Class cannot be publish.

I need the rule in the following case: Inside library and i want to sure all my class are internal or private, exclude API classes. We have this rule in custom company rule set. We want to contribute the rule to origin project, like an optional rule. Maybe someone need this rule too.

Are rule valid to be in the origin project?

We already discussed issue in KtLint pinterest/ktlint#795
I migrate my project to Detekt at the moment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions