https://kotlinlang.org logo
Title
p

Paul Woitaschek

12/13/2018, 4:46 PM
It seems that android lint does not cover this and I want to make it part of my ci pipeline
d

domthom

12/13/2018, 6:34 PM
Is this for a kotlin project? Have you tried ktlint?
p

Paul Woitaschek

12/13/2018, 7:08 PM
Ktlint is too dumb for that
It does not understand the larger picture but operates on a per-file level afaik
s

skennedy

12/13/2018, 7:16 PM
android studio has inspections you can run, but they take a really long time to search large code bases, and i find they have a lot of false positives
p

plastiv

12/13/2018, 7:50 PM
Try all warnings as errors from https://kotlinlang.org/docs/reference/using-gradle.html#compiler-options it reports at least unused properties
p

Paul Woitaschek

12/13/2018, 7:50 PM
That's not usable because it reports on generated classes too.
There is "unused symbol" under kotlin inspections. When I run it, android studio shows "Running Android Lint". I ask myself how I can run this from command line
k

Katya Yurukova

12/14/2018, 7:12 AM