Details
Description
When import is actually a delegate or contains operator or probably another non-math operator, this rule doesn't resolve its usages correctly and reports such imports to be unused. Example:
import delegates.getValue // FP here now class SomeClass(delegate: Delegate) { val someProperty: String by delegate } class Delegate
package delegates operator fun Delegate.getValue(someClass: Any, property: KProperty<*>): String = "delegate"
See this thread for an example with dagger annotations:
https://community.sonarsource.com/t/sonarcloud-unused-import-false-positive-in-dagger2-module/53648