KT.LIBRARY_ENTITIES_SHOULD_NOT_BE_PUBLIC

Library entities are internal or private

Library typealias and classes should be internal or private.

Noncompliant Code

Copy
// code from a library
class A

Compliant Code

Copy
// code from a library
internal class A

Options

  • excludes (default: ['**'])

    path filter

The content on this page is adapted from the Detekt Docs. Copyright ©2022 The Detekt Team. All rights reserved. https://detekt.dev/comments.html