Reputation: 7283
I have an android project and was asked to setup sonar analysis.
There is findbugs plugin installed on the Sonarqube server and I cannot remove it as other java projects are using it.
The problem is I don't want the findbugs analysis, but it looks like it is mandatory when I config the sonar-project.properties like this:
# Language
sonar.language=java
sonar.profile=Android Lint
I tried
sonar.findbugs.skip=true
sonar.findbugs.disabled=true
but no luck
so how can I disable the findbugs sensor for this specific project?
Upvotes: 5
Views: 7728
Reputation: 22804
FindBugs is executed here because the quality profile (rule set) you're using includes FindBugs rules. To avoid FindBugs execution, create a profile with no FindBugs rules in it, and assign your project to be analyzed with that profile. You can make the assignment in Project Administration > Quality Profiles.
Update It seems that the FindBugs sensor runs if the plugin is loaded in the instance - whether or not you're using any of its rules. The only way to keep it from running & save that time is to uninstall.
Upvotes: 0
Reputation: 1
Currently, I think it can be resolved by https://github.com/spotbugs/sonar-findbugs/issues/50
On SonarQube server, under project administration > general settings >java > increase findbugs Timeout
Upvotes: -1
Reputation: 7321
If there is no FindBugs rule activated in the Quality Profile used by this project then it looks like you're impacted by a bug in the FindBugs Plugin:
Issue #37 - FindBugs plugin should not start an analysis if no rules are enabled
Upvotes: 0