David M. Karr (fullname at gmail.com) b80b99bfc8 Update cpd.md with information about risks
The current CPD documentation covers very well how to use it, but there was no information here that describes why someone would care about how much duplicate code they have.  The developers I work with want to "cheat" on their SonarQube quality gates by excluding some code from CPD checks, because they don't really understand what the problem is. Ironically, the main risk from duplicate code is when that code unintentionally becomes not duplicate anymore, creating a hidden problem that may or may not erupt on you.

The text I've added here is excerpted from a short tech note I wrote to my team on the subject.
2018-09-25 14:52:10 -07:00
2018-05-24 17:24:52 +02:00
2018-06-23 11:10:13 +02:00
2018-09-02 15:31:01 +02:00
2018-09-22 01:28:36 -03:00
2018-09-11 14:05:54 +02:00
2018-09-10 15:55:14 -03:00
2018-09-25 19:21:21 +02:00
2018-09-11 14:05:54 +02:00
2018-09-02 15:31:01 +02:00
2018-03-22 14:35:44 +01:00
2018-09-14 23:01:05 +02:00
2018-09-02 15:31:01 +02:00
2018-09-12 16:44:48 +08:00
2017-11-04 02:27:42 -03:00
2017-11-04 02:27:42 -03:00
2018-09-25 19:21:30 +02:00
2018-01-13 20:42:22 -03:00

PMD

Join the chat at https://gitter.im/pmd/pmd Build Status Maven Central Coverage Status

About

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, Salesforce.com Apex, Perl, Swift, Matlab, Python.

Source and Documentation

Our latest source of PMD can be found on GitHub. Fork us!

News and Website

More information can be found on our Website and on SourceForge.

Languages
Java 75.5%
Apex 9.7%
Kotlin 9.1%
ANTLR 2.7%
PLSQL 1%
Other 1.8%