Closed tinder-mhernandez closed 5 years ago
No repro on 0.33.0
Only seems to repro on 0.34.0
.
Thanks, Marcelo. This is the second regression reported on this rule in 0.34.0 so I'll take a look but if it's not obvious what's going on, I'll go ahead and revert the changes we made in this release. Sorry for the inconvenience!
I have an Android library module that depends on the
toSpannable()
extension from Androidcore-ktx
and version0.34.0
of ktlint is detectingimport androidx.core.text.toSpannable
as an unused import. When I run the formatter, it removes the import which then cause the code to fail compilation.Sample Repro: