skuzzle / restrict-imports-enforcer-rule

Gradle plugin & Maven Enforcer rule that restricts usage of unwanted imports in Java, Kotlin and Groovy source files.
MIT License
75 stars 12 forks source link

Configuration consistency: ensure that multiple banned imports are wrapped in parent tag #42

Closed skuzzle closed 4 years ago

skuzzle commented 4 years ago

As seen in #41 it is possible to specify wrong configurations that look correct at first glance. That is because the system allows multiple same tags where only one would be allowed. This applies to <bannedImport> but also to <allowedImport> and <exclusion>

The system should therefore check and alert the user if the configuration is inconsistent in this way.