Java代码质量度量工具大阅兵

FindBugs

FindBugs, a program which uses static analysis to look for bugs in Java code. It is free software, distributed under the terms of the Lesser GNU Public License. The name FindBugs™ and the FindBugs logo are trademarked by The University of Maryland. FindBugs has been downloaded more than a million times.

CheckStyle

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.

PMD

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, Salesforce.com Apex and Visualforce, PLSQL, Apache Velocity, XML, XSL.

Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in Java, C, C++, C#, Groovy, PHP, Ruby, Fortran, JavaScript, PLSQL, Apache Velocity, Scala, Objective C, Matlab, Python, Go, Swift and Salesforce.com Apex and Visualforce.

Jdepend

JDepend traverses Java class file directories and generates design quality metrics for each Java package. JDepend allows you to automatically measure the quality of a design in terms of its extensibility, reusability, and maintainability to manage package dependencies effectively.

Emma

a free Java code coverage tool

Cobertura

Cobertura is a free Java code coverage reporting tool.

JavaNCSS

JavaNCSS - A Source Measurement Suite for Java

Simian

Simian (Similarity Analyser) identifies duplication in Java, C#, C, C++, COBOL, Ruby, JSP, ASP, HTML, XML, Visual Basic, Groovy source code and even plain text files. In fact, simian can be used on any human readable files such as ini files, deployment descriptors, you name it.

注:If you like simian-maven-plugin, you can vote for my answer on http://stackoverflow.com/questions/1077700/how-do-you-use-the-maven-simian-plugin-in-maven2

SourceMonitor

SourceMonitor lets you see inside your software source code to find out how much code you have and to identify the relative complexity of your modules. For example, you can use SourceMonitor to identify the code that is most likely to contain defects and thus warrants formal review.

cloc

cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.

额外阅读

欢迎和大家交流技术相关问题:

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏逢魔安全实验室

Some Linux Hacking Tricks

3735
来自专栏*坤的Blog

Osmotic Study ----Mysql Safe

1043
来自专栏一个会写诗的程序员的博客

React.js 集成 Kotlin Spring Boot 开发 Web 应用实例详解工程源代码参考文章

React.js 集成 Kotlin Spring Boot 开发 Web 应用实例详解

1392
来自专栏GIS讲堂

eclipse中建geoserver源码

概述:本文讲述的是在eclipse中如何构建geoserver源码工程,其中涉及到了jdk,github,marven等。

1413
来自专栏石奈子的Java之路

原 荐 SpringBoot 2.0 系列0

1714
来自专栏算法修养

CodeForces 665A Buses Between Cities

A. Buses Between Cities time limit per test 1 second memory limit per test ...

2984
来自专栏happyJared

Spring Boot几种启动问题的解决方案

  使用Spring Boot以来,遇到和解决过好几次不同的项目启动问题,大多数事故起于错误的配置和依赖。因此,本文用于汇总这些问题,以及提供相应的解决方案,帮...

5161
来自专栏玩转JavaEE

推荐几个Spring Cloud学习资料

研究Spring Cloud也有一段时间了,手头上有一点收集的资料,分享给小伙伴们学习(公众号不允许外链,所以排版效果不太好,有兴趣的小伙伴点击文末阅读原文)。...

4273
来自专栏cloudskyme

Could not find artifact com.sun:tools:jar:1.5.0

【maven package】,则依然报错,但报的是另外一个错误: [INFO] Scanning for projects…[INFO]           ...

3084
来自专栏后端之路

tomcat 生产环境crash

最近生产系统erp不太稳定,时不时出现tomcat crash,并且log下面没有留下任何证据。 收到邮件如下 告警主机:f6_web0 告警时间:2016.1...

2087

扫码关注云+社区