Use the Findbugs plugin in Eclipse

Prerequisites

What is FindBugs

It is a static analysis tool that analyzes the source and finds out potential problems (bugs). A plug-in for Eclipse is also available, and execution and display of execution results from eclipse Is possible.

How to use

-Right-click on the target project-> Find Bugs-> Find Bugs Will perform the source analysis.

[After execution] "(Number of bugs)" is displayed to the right of the file name that is determined to have a potential bug. スクリーンショット 2017-05-13 22.15.08.png

[Open the file] As shown below, the bug icon is displayed in the place where there seems to be a latent bug. スクリーンショット 2017-05-13 22.15.16.png

[Click the bug icon] The Bug Info View shows the following possible bugs: スクリーンショット 2017-05-14 15.48.20.png

Other

If you check "Run FindBugs automatically" in the project unit settings, analysis will be automatically executed at the time of build, and potential bugs can be eliminated at an early stage.

Recommended Posts

Use the Findbugs plugin in Eclipse
Install the plugin in Eclipse
Install tomcat plugin in eclipse
Use completion in Eclipse on mac
[Java] Use cryptography in the standard library
MVC in Eclipse.
Use JDBC Manager with the settings in jdbc.dicon.
Use the JDK used in Android Studio in the terminal
When the server fails to start in Eclipse
When the project is not displayed in eclipse
The right way to see the tomcat source in eclipse
Simple plugin mechanism in Spring, also consider the order
Use java.time in Jackson
How to use Z3 library in Scala with Eclipse
To debug in eclipse
Use Interceptor in Spring
I tried installing the Docker Integration plugin in IntelliJ
Use OpenCV in Java
Use MouseListener in Processing
Use images in Rails
How to use JDD library in Scala with Eclipse
[Swift] Use UserDefaults to save data in the app
Use PostgreSQL in Scala
How to debug the generated jar file in Eclipse
Use PreparedStatement in Java
Use collection_select to pull down the data stored in Active_Hash
How to create a placeholder part to use in the IN clause
Use your own classes in the lib directory with Rails6
Turn off the format function only in the specified part in Eclipse
Use ruby variables in javascript.
Personal memo Eclipse plug-in installation
Null-safe program in Java (Eclipse)
[Eclipse plug-in development] Javadoc acquisition
How to use Eclipse Debug_Shell
First Java development in Eclipse
Using Amateurs UML in Eclipse
eclipse all in one installation
Use Redis Stream in Java
Use multiple checkboxes in Rails6!
Eclipse 4.8 introduction memo (Plugin edition)
JavaFX-Load Image in the background
Use MailHog for checking emails in the development environment (using Docker)
Use an example domain for the package name in the sample code
I tried setting Java beginners to use shortcut keys in eclipse
The story that Tomcat suffered from a timeout error in Eclipse
Steps to install Maven on Mac and use it in Eclipse