SlideShare a Scribd company logo
Code Analyzer:
FindBugs and PMD
2012/6/7 John
Agenda
● FindBugs
○ How to install
○ How to work
○ Configuration
● PMD
○ How to install
○ How to work
○ Configuration
●
FindBugs
FindBugs™ is a program to find bugs in
Java programs. It looks for instances of
"bug patterns" --- code instances that
are likely to be errors.
How to install
For eclipse:
1. install:
How to work
Configuration
PMD
PMD scans Java source code and looks for potential
problems like:
● Possible bugs - empty try/catch/finally/switch
statements
● Dead code - unused local variables, parameters and
private methods
● Suboptimal code - wasteful String/StringBuffer usage
● Overcomplicated expressions - unnecessary if
statements, for loops that could be while loops
● Duplicate code - copied/pasted code means
copied/pasted bugs
How to install
For eclipse:
1. install:
How to work
Configuration
Level Filter:
Rule Configuration: Window->Preferences->PMD->Rule Configuration

More Related Content

What's hot (20)

PDF
Clean code
Achintya Kumar
 
PPTX
Clean code
Duc Nguyen Quang
 
PDF
Ruby Object Design
Eddie Lee
 
PDF
Ruby Object Design
Eddie Lee
 
PDF
Psr 2 coding style guide - Tidepool Labs
Harutyun Abgaryan
 
ODP
Introduction to Python
tswr
 
PPTX
Clean Code, Resumen Capítulo 1.
Francisco Lopez Espinosa
 
PPTX
Unusual C# - OOP
Medhat Dawoud
 
ODP
ANTLR4 in depth
Владимир Кожаев
 
PPTX
Ruby
krupasuthar
 
PPT
JavaScript Variables
Charles Russell
 
PDF
Standards For Java Coding
Rahul Bhutkar
 
ODP
How to code
Shishir Sharma
 
PPTX
Javascript: The good parts for humans (part 1)
Anji Beeravalli
 
PPTX
Clean code
NadiiaVlasenko
 
PPTX
클린 테스트
Jin Seoung Lee
 
PDF
Python typing module
Ryan Blunden
 
KEY
Top 10+ Things .NET Developers Should Know About Ruby
Jeff Cohen
 
PDF
Grooming with Groovy
Dhaval Dalal
 
PDF
Basics of Metaprogramming in Ruby
Digital Natives
 
Clean code
Achintya Kumar
 
Clean code
Duc Nguyen Quang
 
Ruby Object Design
Eddie Lee
 
Ruby Object Design
Eddie Lee
 
Psr 2 coding style guide - Tidepool Labs
Harutyun Abgaryan
 
Introduction to Python
tswr
 
Clean Code, Resumen Capítulo 1.
Francisco Lopez Espinosa
 
Unusual C# - OOP
Medhat Dawoud
 
JavaScript Variables
Charles Russell
 
Standards For Java Coding
Rahul Bhutkar
 
How to code
Shishir Sharma
 
Javascript: The good parts for humans (part 1)
Anji Beeravalli
 
Clean code
NadiiaVlasenko
 
클린 테스트
Jin Seoung Lee
 
Python typing module
Ryan Blunden
 
Top 10+ Things .NET Developers Should Know About Ruby
Jeff Cohen
 
Grooming with Groovy
Dhaval Dalal
 
Basics of Metaprogramming in Ruby
Digital Natives
 

Similar to Code analyzer: FindBugs and PMD (20)

PDF
MSL2008. Debugging
Juan A. Suárez Romero
 
PDF
PHP Mega Meetup, Sep, 2020, Anti patterns in php
Ahmed Abdou
 
PDF
Fuzzing softwares for bugs - OWASP Seasides
OWASPSeasides
 
PPSX
Coding standard
FAROOK Samath
 
PPTX
Debugging Modern C++ Application with Gdb
SenthilKumar Selvaraj
 
PDF
TDD with Spock @xpdays_ua
Izzet Mustafaiev
 
PPTX
Writing Performant Front-end Code
Lyubomir Bozhinov
 
PDF
Test driven development - Zombie proof your code
Pascal Larocque
 
PDF
Gradle explained
Andrey Mukamolov
 
PPTX
Creating a reasonable project boilerplate
Stanislav Petrov
 
PPT
gdb-debug analysis and commnds on gcc.ppt
MaheshBabuD1
 
PDF
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
Gavin Pickin
 
PDF
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE - CFObjective() 2017
Ortus Solutions, Corp
 
PPT
Writing Good Code
Leo Liang
 
PDF
TDD in Python With Pytest
Eddy Reyes
 
PDF
[Gstar 2013] Unity Security
Seungmin Shin
 
PDF
Android Platform Debugging & Development
Qualcomm Developer Network
 
ODP
When Good Code Goes Bad: Tools and Techniques for Troubleshooting Plone
David Glick
 
PPTX
PHP Aberdeen Quick optimisation of PHP with Webgrind
Andy_Gaskell
 
PPTX
Java Code Quality Tools
Anju ML
 
MSL2008. Debugging
Juan A. Suárez Romero
 
PHP Mega Meetup, Sep, 2020, Anti patterns in php
Ahmed Abdou
 
Fuzzing softwares for bugs - OWASP Seasides
OWASPSeasides
 
Coding standard
FAROOK Samath
 
Debugging Modern C++ Application with Gdb
SenthilKumar Selvaraj
 
TDD with Spock @xpdays_ua
Izzet Mustafaiev
 
Writing Performant Front-end Code
Lyubomir Bozhinov
 
Test driven development - Zombie proof your code
Pascal Larocque
 
Gradle explained
Andrey Mukamolov
 
Creating a reasonable project boilerplate
Stanislav Petrov
 
gdb-debug analysis and commnds on gcc.ppt
MaheshBabuD1
 
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
Gavin Pickin
 
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE - CFObjective() 2017
Ortus Solutions, Corp
 
Writing Good Code
Leo Liang
 
TDD in Python With Pytest
Eddy Reyes
 
[Gstar 2013] Unity Security
Seungmin Shin
 
Android Platform Debugging & Development
Qualcomm Developer Network
 
When Good Code Goes Bad: Tools and Techniques for Troubleshooting Plone
David Glick
 
PHP Aberdeen Quick optimisation of PHP with Webgrind
Andy_Gaskell
 
Java Code Quality Tools
Anju ML
 
Ad

More from Kan-Han (John) Lu (20)

PDF
Dagger for android
Kan-Han (John) Lu
 
PDF
Android develop guideline
Kan-Han (John) Lu
 
PDF
Working process and git branch strategy
Kan-Han (John) Lu
 
PDF
Deep neural network for youtube recommendations
Kan-Han (John) Lu
 
PDF
Android testing part i
Kan-Han (John) Lu
 
PDF
Cuda project paper
Kan-Han (John) Lu
 
PDF
Twitter as a personalizable information service ii
Kan-Han (John) Lu
 
PDF
Multimedia data minig and analytics sentiment analysis using social multimedia
Kan-Han (John) Lu
 
PDF
Android IPC: Binder
Kan-Han (John) Lu
 
PDF
ARM: Trusted Zone on Android
Kan-Han (John) Lu
 
PDF
Android Training - Card Style
Kan-Han (John) Lu
 
PDF
Android Training - View Pager
Kan-Han (John) Lu
 
PDF
Android Training - Sliding Menu
Kan-Han (John) Lu
 
PDF
Android Training - Pull to Refresh
Kan-Han (John) Lu
 
PDF
Java: Exception Handling
Kan-Han (John) Lu
 
PDF
Dynamic Proxy by Java
Kan-Han (John) Lu
 
PDF
Android UI System
Kan-Han (John) Lu
 
PDF
Android Fragment
Kan-Han (John) Lu
 
PDF
Android Training - Content Sharing
Kan-Han (John) Lu
 
PDF
Android Training - Action Bar
Kan-Han (John) Lu
 
Dagger for android
Kan-Han (John) Lu
 
Android develop guideline
Kan-Han (John) Lu
 
Working process and git branch strategy
Kan-Han (John) Lu
 
Deep neural network for youtube recommendations
Kan-Han (John) Lu
 
Android testing part i
Kan-Han (John) Lu
 
Cuda project paper
Kan-Han (John) Lu
 
Twitter as a personalizable information service ii
Kan-Han (John) Lu
 
Multimedia data minig and analytics sentiment analysis using social multimedia
Kan-Han (John) Lu
 
Android IPC: Binder
Kan-Han (John) Lu
 
ARM: Trusted Zone on Android
Kan-Han (John) Lu
 
Android Training - Card Style
Kan-Han (John) Lu
 
Android Training - View Pager
Kan-Han (John) Lu
 
Android Training - Sliding Menu
Kan-Han (John) Lu
 
Android Training - Pull to Refresh
Kan-Han (John) Lu
 
Java: Exception Handling
Kan-Han (John) Lu
 
Dynamic Proxy by Java
Kan-Han (John) Lu
 
Android UI System
Kan-Han (John) Lu
 
Android Fragment
Kan-Han (John) Lu
 
Android Training - Content Sharing
Kan-Han (John) Lu
 
Android Training - Action Bar
Kan-Han (John) Lu
 
Ad

Recently uploaded (20)

PPTX
Cooking Oil Tester How to Measure Quality of Frying Oil.pptx
M-Kube Enterprise
 
PDF
A proposed mechanism for the formation of protocell-like structures on Titan
Sérgio Sacani
 
PPTX
Diagnostic Features of Common Oral Ulcerative Lesions.pptx
Dr Palak borade
 
PPTX
Anatomy and physiology of digestive system.pptx
Ashwini I Chuncha
 
PDF
Introduction of Animal Behaviour full notes.pdf
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PPTX
Phage Therapy and Bacteriophage Biology.pptx
Prachi Virat
 
PPTX
Hypothalamus_nuclei_ structure_functions.pptx
muralinath2
 
PDF
The-Origin- of -Metazoa-vertebrates .ppt
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PDF
Step-by-Step Guide: How mRNA Vaccines Works
TECNIC
 
PPTX
MODULE 2 Effects of Lifestyle in the Function of Respiratory and Circulator...
judithgracemangunday
 
PPT
Human physiology and digestive system
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PDF
Annual report 2024 - Inria - English version.pdf
Inria
 
PDF
crestacean parasitim non chordates notes
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PPTX
Immunopharmaceuticals and microbial Application
xxkaira1
 
PDF
Primordial Black Holes and the First Stars
Sérgio Sacani
 
PDF
2025-06-10 TWDB Agency Updates & Legislative Outcomes
tagdpa
 
PDF
Pharma Part 1.pdf #pharmacology #pharmacology
hikmatyt01
 
PPTX
Pratik inorganic chemistry silicon based ppt
akshaythaker18
 
PDF
Chemokines and Receptors Overview – Key to Immune Cell Signaling
Benjamin Lewis Lewis
 
PPTX
Q1 - W1 - D2 - Models of matter for science.pptx
RyanCudal3
 
Cooking Oil Tester How to Measure Quality of Frying Oil.pptx
M-Kube Enterprise
 
A proposed mechanism for the formation of protocell-like structures on Titan
Sérgio Sacani
 
Diagnostic Features of Common Oral Ulcerative Lesions.pptx
Dr Palak borade
 
Anatomy and physiology of digestive system.pptx
Ashwini I Chuncha
 
Introduction of Animal Behaviour full notes.pdf
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Phage Therapy and Bacteriophage Biology.pptx
Prachi Virat
 
Hypothalamus_nuclei_ structure_functions.pptx
muralinath2
 
The-Origin- of -Metazoa-vertebrates .ppt
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Step-by-Step Guide: How mRNA Vaccines Works
TECNIC
 
MODULE 2 Effects of Lifestyle in the Function of Respiratory and Circulator...
judithgracemangunday
 
Human physiology and digestive system
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Annual report 2024 - Inria - English version.pdf
Inria
 
crestacean parasitim non chordates notes
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Immunopharmaceuticals and microbial Application
xxkaira1
 
Primordial Black Holes and the First Stars
Sérgio Sacani
 
2025-06-10 TWDB Agency Updates & Legislative Outcomes
tagdpa
 
Pharma Part 1.pdf #pharmacology #pharmacology
hikmatyt01
 
Pratik inorganic chemistry silicon based ppt
akshaythaker18
 
Chemokines and Receptors Overview – Key to Immune Cell Signaling
Benjamin Lewis Lewis
 
Q1 - W1 - D2 - Models of matter for science.pptx
RyanCudal3
 

Code analyzer: FindBugs and PMD