I have some jar files that I'd like to run sonarqube scans (especially findbugs) against but I do not have the source. Is there any change to run the scans only against the class files?

When running sonar-scanner against the extracted jar file I always get a message like this:

18:49:58.364 DEBUG: 'freemarker/template/TemplateServletUtils.class' indexed with language 'null'

and when I define the language in sonar-project.properties as "java" I get

18:58:41.487 WARN: File '/home/hans/testcode/testproj/freemarker/template/SimpleHash.class' is ignored because it doesn't belong to the forced language 'java'

Thank you!

0 Answers