A popular attempt to bypass Salesforce Apex code coverage rules are code busters where one statement is used in thousands of repeating lines.
We have found variations like i=1;
or a++;
or a=b;
with endless variations for the variable name. All have in common that two (or more) consecutive lines (excluding empty or comments) are identical.
How can I discover those in PMD?