Maikel Steneker 6fb5ac59b9 Ensure CPD uses tab width of 1 for tabs consistently
The columns that are reported by CPD were inconsistent across languages
before. A language like Java (using a JavaCC-based tokenizer) would use
a width of 8 for tabs, whereas a language like C# (using an Antlr-based
tokenizer) would use 1 instead.

This includes unit tests for most languages to ensure a tab character is
counted as 1. The configuration for JavaCC has been adjusted to respect
this as well.
2020-07-20 10:42:21 +02:00
2020-07-17 20:30:01 +02:00
2020-07-17 12:07:03 +02:00
2020-07-17 12:07:03 +02:00
2020-07-17 15:16:24 +02:00
2020-07-17 15:29:25 +02:00
2020-07-17 15:16:24 +02:00
2020-07-16 11:39:11 +02:00
2020-05-22 11:03:05 +02:00
2020-05-29 09:27:58 +02:00
2020-07-17 12:07:03 +02:00

PMD

Join the chat at https://gitter.im/pmd/pmd Build Status Maven Central 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%