SonarQube Findbugs Plugin

FindBugs is a program that uses static analysis to look for bugs in Java code. It can detect a variety of common coding mistakes, including thread synchronization problems, misuse of API methods.

License

License

Categories

Categories

Java Languages
GroupId

GroupId

org.codehaus.sonar-plugins.java
ArtifactId

ArtifactId

sonar-findbugs-plugin
Last Version

Last Version

3.2
Release Date

Release Date

Type

Type

sonar-plugin
Description

Description

SonarQube Findbugs Plugin
FindBugs is a program that uses static analysis to look for bugs in Java code. It can detect a variety of common coding mistakes, including thread synchronization problems, misuse of API methods.
Project URL

Project URL

http://redirect.sonarsource.com/plugins/findbugs.html
Project Organization

Project Organization

SonarSource
Source Code Management

Source Code Management

https://github.com/SonarSource/sonar-findbugs

Download sonar-findbugs-plugin

Dependencies

compile (4)

Group / Artifact Type Version
com.google.code.findbugs : findbugs jar 3.0.1
org.codehaus.sonar.sslr-squid-bridge : sslr-squid-bridge jar 2.5.3
com.google.code.findbugs : annotations jar 2.0.1
com.thoughtworks.xstream : xstream jar 1.3.1

provided (5)

Group / Artifact Type Version
com.mebigfatguy.fb-contrib : fb-contrib jar 6.0.0
com.h3xstream.findsecbugs : findsecbugs-plugin jar 1.3.0
org.codehaus.sonar : sonar-plugin-api jar 4.5.2
org.codehaus.sonar-plugins.java : sonar-java-plugin sonar-plugin 2.7
org.apache.maven : maven-project jar 2.0.7

test (7)

Group / Artifact Type Version
org.slf4j : slf4j-log4j12 jar 1.5.2
junit : junit jar 4.11
org.mockito : mockito-all jar 1.9.0
org.easytesting : fest-assert jar 1.4
org.codehaus.sonar : sonar-testing-harness jar 4.5.2
xmlunit : xmlunit jar 1.6
org.codehaus.sonar : sonar-plugin-api test-jar 4.5.2

Project Modules

There are no modules declared in this project.

SonarQube Spotbugs Plugin

Build Status FindBugs Rules Coverage Status

Description / Features

This plugin requires the SonarJava Plugin, and uses SpotBugs, fb-contrib and Find Security Bugs to provide coding rules.

Usage

In the quality profile, activate some rules from Spotbugs, fb-contrib or Find Security Bugs rule repositories and run an analysis on your project.

Configuration

This plugin can be configured with sonar web interface (see General/Java section) or with project properties.

Confidence level (sonar.findbugs.confidenceLevel): Specifies the confidence threshold (previously called "priority") for reporting issues. If set to "low", confidence is not used to filter bugs. If set to "medium" (the default), low confidence issues are supressed. If set to "high", only high confidence bugs are reported.

Effort (sonar.findbugs.effort): Effort of the bug finders. Valid values are Min, Default and Max. Setting 'Max' increases precision but also increases memory consumption.

Excludes (sonar.findbugs.excludesFilters): Paths to findbugs filter-files with exclusions.

Timeout (sonar.findbugs.timeout): Specifies the amount of time, in milliseconds, that FindBugs may run before it is assumed to be hung and is terminated. The default is 600,000 milliseconds, which is ten minutes.

Compiled code

FindBugs requires the compiled classes to run.

Make sure that you compile your source code with debug information on (to get the line numbers in the Java bytecode). Debug is usually on by default unless you're compiling with Ant, in which case, you will need to turn it on explicitly. If the debug information is not available, the issues raised by FindBugs will be displayed at the beginning of the file because the correct line numbers were not available.

Compatibility

Since version 3.0, the plugin embed FindBugs 3.0.0 which supports analysis of Java 8 bytecode but requires Java 1.7 to run (see Compatibility section). Please find below the compatibility matrix of the plugin.

Findbugs Plugin version Embedded SpotBugs/Findbugs version Embedded Findsecbugs version Embedded FB-Contrib version Minimal Java version Supported SonarQube version Minimum sonar-java version
3.10 3.1.11 (SpotBugs) 1.8.0 7.4.3sb 1.8 7.6~ 5.10.1.16922
3.11.0 3.1.12 (SpotBugs) 1.8.0 7.4.3sb 1.8 7.6~ 5.10.1.16922
4.0.0 4.0.0 (SpotBugs) 1.10.1 7.4.7 (sb-contrib) 1.8 7.6~ 5.10.1.16922
4.0.1 4.1.2 (SpotBugs) 1.10.1 7.4.7 (sb-contrib) 1.8 7.6~ 5.10.1.16922
4.0.2 4.2.0 (SpotBugs) 1.11.0 7.4.7 (sb-contrib) 1.8 7.6~ 5.10.1.16922
4.0.3-SNAPSHOT 4.2.0 (SpotBugs) 1.11.0 7.4.7 (sb-contrib) 1.8 7.6~ 5.10.1.16922
org.codehaus.sonar-plugins.java

SonarSource

Continuous Code Quality

Versions

Version
3.2
3.1
3.0
2.4
2.3
2.2.1
2.2
2.2-RC1
2.1
2.1-RC4
2.1-RC3
2.1-RC2
2.1-RC1
2.0
1.5
1.5-RC2
1.5-RC1
1.4
1.3
1.3-RC1
1.2
1.2-RC2
1.2-RC1
1.1
1.1-RC2
1.1-RC1