nebula-plugins / gradle-lint-plugin

A pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts.
Apache License 2.0
771 stars 89 forks source link

Fix false positive unused-dependency warning by scanning Annotations with arrays #403

Open dbolger opened 7 months ago

dbolger commented 7 months ago

This fixes #120, returns the instance of DependencyClassVisitor when ASM detects an array. As a result, visit is called against each element of the array, subsequently calling readType to determine the type and then readObjectName to determine which package the class originates from.