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
Sha Sha Chu
12/15/2020, 9:03 PM
yeah ktlint doesn’t really have enough context to figure unused code; it’s meant more for formatting/code style.
Sha Sha Chu
12/15/2020, 9:03 PM
i usually use the built-in intellij/android studio tools
t
tapchicoma
12/15/2020, 9:06 PM
imho detekt suits better for this case as it does more in-depth code analyze