ktlint doesn’t object to private or internal class...
# ktlint
r
ktlint doesn’t object to private or internal classes (or functions, or properties…) that aren’t used anywhere; is anyone aware of a linter that can be configured to fail the check for unused code?
s
yeah ktlint doesn’t really have enough context to figure unused code; it’s meant more for formatting/code style.
i usually use the built-in intellij/android studio tools
t
imho detekt suits better for this case as it does more in-depth code analyze
👍 1