Static Code Analysis Using FindBugs



Static Code Analysis Using FindBugs


Static code analysis is the method of analyzing the code without actually executing it.

For this purpose, we can use Maven FindBug plugin which is an open-source tool.


To configure Maven FindBug plugin inside our project, we need to put the below plugin into reporting section of our POM.xml file.

And also we need to add below dependency under the build section in our pom.xml file.


Once this is done we need to execute mvn site from the command prompt




This will generate a report named "findbugs.html" in target/site in our project directory. These reports will give us a list of all the potential software bugs. 






SHARE THIS

Author:

My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post