Affects PMD Version:
6.0.1
Rule:
UnusedImports
Description:
A false positive is generated for the UnusedImports
rule on static import of constants.
Code Sample demonstrating the issue:
The file FileFormatType
on the project VocabHunter shows this problem. To work around the problem, the following line has been added to ruleset.xml:
<exclude-pattern>.*/*FileFormatType.java</exclude-pattern>
To reproduce the problem, remove the above workaround line and then launch the following:
$ ./gradlew clean :gui:pmdMain
Running PMD through: Gradle
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4