• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Java Code Quality Tools
 

Java Code Quality Tools

on

  • 13,738 views

 

Statistics

Views

Total Views
13,738
Views on SlideShare
5,513
Embed Views
8,225

Actions

Likes
5
Downloads
83
Comments
0

52 Embeds 8,225

http://www.javacodegeeks.com 3608
http://halyph.blogspot.com 1285
http://www.halyph.com 1144
http://halyph.blogspot.in 437
http://halyph.blogspot.gr 337
http://halyph.blogspot.de 198
http://halyph.blogspot.com.au 130
http://halyph.blogspot.fr 117
http://halyph.blogspot.co.uk 107
http://it-booze.blogspot.com 106
http://mj89sp3sau2k7lj1eg3k40hkeppguj6j-a-sites-opensocial.googleusercontent.com 96
http://www.itbooze.com.ua 81
http://halyph.blogspot.ca 71
http://halyph.blogspot.nl 51
http://halyph.blogspot.com.br 44
http://halyph.blogspot.se 36
http://halyph.blogspot.com.es 34
http://halyph.blogspot.ro 25
http://halyph.blogspot.it 24
http://halyph.blogspot.be 23
http://halyph.blogspot.sg 21
http://halyph.blogspot.cz 20
http://halyph.blogspot.ch 19
http://halyph.blogspot.ru 18
http://halyph.blogspot.fi 17
http://halyph.blogspot.hk 16
http://halyph.blogspot.hu 16
http://halyph.blogspot.co.at 13
http://halyph.blogspot.jp 13
http://halyph.blogspot.co.il 12
http://halyph.blogspot.mx 11
http://halyph.blogspot.ie 11
http://halyph.blogspot.kr 9
http://halyph.blogspot.pt 9
http://itbooze.blogspot.com 8
http://halyph.blogspot.tw 7
http://halyph.blogspot.sk 6
http://halyph.blogspot.no 6
http://halyph.blogspot.com.ar 5
http://halyph.blogspot.ae 5
http://8574118689743302986_62d0fa48eb246cab819c18ebb49d46d64fd3af70.blogspot.com 5
http://halyph.blogspot.co.nz 4
http://www.linkedin.com 3
http://webcache.googleusercontent.com 3
http://halyph.blogspot.dk 3
http://www.blogger.com 2
http://translate.googleusercontent.com 2
http://jboss.resourcezen.com 2
http://eclipse.resourcezen.com 2
http://testkie.blogspot.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

Java Code Quality Tools Java Code Quality Tools Presentation Transcript

  • Java Code Quality Tools
    by OrestIvasiv
    Twitter: @halyph
    Blog: halyph.blogspot.com
  • CodeProAnalytix
    Code Analysis
    Metrics
    Code Coverage
    Dependency Analysis
    JUnit Test Generation
    Similar Code Analysis
  • PMD
    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
  • FindBugs
    Correctness bug - Probable bug - an apparent coding mistake resulting in code that was probably not what the developer intended. We strive for a low false positive rate.
    Bad Practice - Violations of recommended and essential coding practice. Examples include hash code and equals problems, cloneable idiom, dropped exceptions, serializable problems, and misuse of finalize. We strive to make this analysis accurate, although some groups may not care about some of the bad practices.
    Dodgy - Code that is confusing, anomalous, or written in a way that leads itself to errors. Examples include dead local stores, switch fall through, unconfirmed casts, and redundant null check of value known to be null. More false positives accepted. In previous versions of FindBugs, this category was known as Style.
  • Code Coverage
    Cobertura
    eCobertura – Eclipse Plugin
    EMMA
    EclEmma and JaCoCo – Eclipse Plugins
  • Coding standard analysis
    Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to spare humans of this boring (but important) task. This makes it ideal for projects that want to enforce a coding standard.
  • Tattletale
    Identify dependencies between JAR files
    Find missing classes from the classpath
    Spot if a class/package is located in multiple JAR files
    Spot if the same JAR file is located in multiple locations
    With a list of what each JAR file requires and provides
    Verify the SerialVersionUID of a class
    Find similar JAR files that have different version numbers
    Find JAR files without a version number
    Find unused JAR archives
    Identify sealed / signed JAR archives
    Locate a class in a JAR file
    Get the OSGi status of your project
    Remove black listed API usage
  • Consolidated Tools
    Sonar
    Xradar
    QALab
  • UCDetector
    Unnecessary Code Detector is a eclipse PlugInto find unnecessary (dead) public Java code. For example public classes, methods or fields which have no references. UCDetector creates markers for the following problems, which appear in the eclipse problem view:
    Unnecessary (dead) code
    Code where the visibility could be changed to protected, default or private
    Methods of fields, which can be final