Is there any configuration for disabling type-resolution for
UnusedImport
rule? Since type resolution does not work with kotlin synthetics, and our project is full of them, this rule give me 1k+ false-positives
g
gammax
12/17/2020, 5:09 PM
Sadly not. I’d rather invite you to remove kotlin synthetics as it’s deprecated in favour of ViewBindings.
t
themishkun
12/18/2020, 10:57 AM
Thanks, we are pretty fine using them. Not everything that is deprecated should be removed without consideration =)
g
gammax
12/18/2020, 1:40 PM
Legit. Though we’re not probably going to address this issue on the detekt’s side. However, If you find a workaround, we can list it in the official documentation.