FindBugs is unable to find classes in a multiflavored project
See original GitHub issueHi @vanniktech, thanks for the great plugin! I believe it will become very popular soon. There some issues, however, that prevent us from use it in production. Here is one of them.
Our project has a number of ABI flavors, like “arm” and “x86”. We found that it’s not possible to perform FindBugs check on it:
./gradlew findbugs
... assembles all flavours ...
:app:assemble
:app:findbugs FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:findbugs'.
> No classes configured for FindBugs analysis.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
That’s because it searches for classes to analyze in hardcoded place: https://github.com/vanniktech/gradle-code-quality-tools-plugin/blob/master/src/main/groovy/com/vanniktech/code/quality/tools/CodeQualityToolsPlugin.groovy#L158 , but in our project these classes are placed in a build/intermediates/classes/arm/debug .
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
FindBugs FAQ - SourceForge
If FindBugs cannot find a class referenced by your application, it will print out a message when the analysis completes, specifying the classes...
Read more >Findbugs needs sources to be compiled. Please build project ...
Now for a project i can't get the compiled code, what to do to have the analysis not ... classes to make it...
Read more >Can I tell findbugs to ignore classes I am unable to add?
When FindBugs can't find that class, it generally just aborts the specific kind of analysis it was trying to do, and carries on...
Read more >SpotBugs FAQ — spotbugs 4.7.3 documentation
If SpotBugs cannot find a class referenced by your application, it will print out a message when the analysis completes, specifying the classes...
Read more >Introduction to FindBugs - Baeldung
In this article, we're going to have a look at setting up FindBugs on a Java project and integrating it into the IDE...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Created a separate issue: https://github.com/vanniktech/gradle-code-quality-tools-plugin/issues/68
Closing this. Have a look at #75 for the reasoning behind this.