Maikel Steneker aaef0fde4e Add option to ignore sequences of literals
In some cases, code may include sequences of literals that represent lists or tables of constants, such as lookup tables. Large sequences of these (particularly parts with many zeroes) will be identified by CPD as duplicates, but in practice, these are not the types of duplicates that are considered interesting.

This introduces a new option for CPD (--ignore-literal-sequences) that ignores these sequences of literals, in a very similar way to how using directives for C# can already be skipped as well. For now, this functionality is restricted to C#, but it could be added for other languages as well.
2020-11-25 12:35:02 +01:00
2020-01-16 18:07:25 +01:00
2019-03-03 12:04:55 +01:00
2020-02-20 11:29:10 +01:00
2020-10-27 15:34:38 +01:00
2020-04-17 16:13:34 +02:00
2020-11-25 11:26:16 +01:00
2020-10-27 15:34:38 +01:00
2020-11-25 11:26:16 +01:00
2019-09-07 16:09:33 +02:00
2020-01-16 18:07:25 +01:00
2020-01-16 18:07:25 +01:00
2019-09-07 16:09:33 +02:00
2020-11-23 09:10:25 +01:00
2020-11-14 12:48:59 +01:00

PMD

Join the chat at https://gitter.im/pmd/pmd Build Status Maven Central Reproducible Builds Coverage Status Codacy Badge Contributor Covenant

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, Modelica, PLSQL, Apache Velocity, XML, XSL, Scala.

Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in C/C++, C#, Dart, Fortran, Go, Groovy, Java, JavaScript, JSP, Kotlin, Lua, Matlab, Modelica, Objective-C, Perl, PHP, PLSQL, Python, Ruby, Salesforce.com Apex, Scala, Swift, Visualforce and XML.

Support

Source

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

The rule designer is developed over at pmd/pmd-designer. Please see its README for developer documentation.

Website

More information can be found on our Website.

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