I think the issue is related to the classpath provided to the CheckVerifier.
Are you using the CheckVerifier like this?
CheckVerifier.newVerifier()
.onFile("src/test/files/SpringControllerRequestMappingEntityRule.java")
.withCheck(new SpringControllerRequestMappingEntityRule())
.withClassPath(FilesUtils.getClassPath("target/test-jars"))
.verifyIssues();
Using the withClassPath(FilesUtils.getClassPath("target/test-jars"))
will provide the analysis with the knowledge of all dependencies defined in the pom.xml under:
<!-- only required to run UT - these are UT dependencies -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>test-compile</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
...
...