SpotBugs Eclipse plugin

Add this URL to your Eclipse Installation to reach this solution's update site.

Photon (4.8)
Oxygen (4.7)
Neon (4.6)
2018-09 (4.9)
2018-12 (4.10)

Learn more...

Details Group Tabs


SpotBugs is a program which uses static analysis to look for bugs in Java code. SpotBugs is open source (LGPL).

SpotBugs checks for more than 400 bug patterns, such as null pointer dereferences, infinite recursive loops, bad uses of the Java libraries and deadlocks. Bug descriptions can be found here.

SpotBugs Eclipse Plugin integrates SpotBugs seamlessly with the most popular Java IDE and allows to run SpotBugs analysis incrementally on changed files or on demand per project. A quick plugin introduction is available at, and a short video demo is available on YouTube.

SpotBugs is the spiritual successor of FindBugs, carrying on from the point where FindBugs left off with support of its community. SpotBugs is developed by an open source community and depends on the help from community. Please consider to help the project with patches, testing or simply improving documentation - your help is highly appreciated.

Submit your issue or suggestion at github and start contributing to the project!

Update sites:

Additional Details
Eclipse Versions: 
Photon (4.8), Oxygen (4.7), Neon (4.6), 2018-09 (4.9), 2018-12 (4.10)
Platform Support: 
Windows, Mac, Linux/GTK
Organization Name: 
Date Created: 
Thu, 2017-06-29 23:59
Development Status: 
Date Updated: 
Tue, 2018-11-27 10:25
December 201833/9162006 (0.58%)22
November 201832/9393890 (0.63%)48
October 201831/9434334 (0.68%)49
September 201830/9413588 (0.69%)37
August 201831/9393310 (0.65%)39
July 201831/9403568 (0.66%)26
June 201833/9473080 (0.62%)30
May 201832/9543417 (0.62%)36
April 201832/9463437 (0.62%)22
March 201832/9613262 (0.59%)16
February 201828/9402950 (0.63%)28
January 201829/9453053 (0.61%)27
View Data for all Listings
External Install Button

Marketplace Drag to Install button

By adding the following code below to your website you will be able to add an install button for SpotBugs Eclipse plugin.

HTML Code:

Markdown Syntax:

Output: Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client
Tuesday, December 18, 2018 - 06:23
pshankardrn's picture

Is there a m2e connector for Spotbugs plugin like we have m2e connector for Findbugs plugin? As I am using Eclipse Oxygen, I can't install FindBugs plugin.

mzajc's picture

This plug-in helped me solve many known and unknown bugs. It tells you exactly in what conditions the bug occurs, on which line it occurs and how to fix it. Just great!

mzajc's picture

This tool worked just great in Oxygen 1, but the RV_RETURN_VALUE_IGNORED_INFERRED detector does no longer work in Eclipse Photon. Is there a way to solve it other than using Oxygen instead?

mzajc's picture

I solved the issue, it was a detector configuration mistake!

aloskutov's picture

You use JUnit to test your code? You perform code reviews?

If yes, then here is the tool which will find test failures and review issues even before you build your application - just as you type. If not, here is the tool which (in few minutes) will give you the proof, that your code is not worth to be deployed at all, and a good reason to start testing your application and to review your code.

SpotBugs works similar to the Java compiler: as soon as you hit CTRL+S, Eclipse will compile the code and start incremental bug analysis. SpotBugs can find an amazing number of different bug patterns, which are sometimes hard to debug or to reproduce. SpotBugs has a very small number of false positives. Even if you think that the code will never run in the highlighted issue, in many cases the tool open your eyes on "dirty" places in your code.

SpotBugs is valuable for both beginner and experienced programmers. If you just start to write Java applications, the tool will help you to learn better programming practices by explaining you the reasons why the code should be written in a different way. SpotBugs helps experienced developers to keep the code clean and to review other's code by simply running the analysis over the Java projects.

SpotBugs uses unique bytecode scanning techniques to analyze compiled Java code. In most cases the critical and medium severity bugs found by SpotBugs are real, serious programming errors, and not just coding style issues. This is the main differentiator to other similar tools like PMD and Checkstyle (both are source-code analyzer).

I cannot imagine to seriously develop Java software without SpotBugs Eclipse plugin anymore. For those who knows Ant , Maven, Hudson or Jenkins: of course, they also have plugins for SpotBugs, so that you can use same tool as in your IDE to analyze your software during automated tests.