Reputation: 13001
Is there a plugin or feature dedicated to find duplicated code from within eclipse?
The SDD plugin seems to be outdated and dead. SonarLint does not show duplicated code.
i want to see duplicated code and not other noise as pmd would introduce (i think)
Upvotes: 0
Views: 7454
Reputation: 34135
The most popular Eclipse plug-in for that is eclipse-pmd which integrates PMD with its Copy/Paste Detector (CPD).
There are also other plug-ins that integrate PMD, and probably also some commercial plug-ins to find duplicated code.
Upvotes: 1
Reputation: 58772
Use can use CPD
Duplicate code can be hard to find, especially in a large project. But PMD’s Copy/Paste Detector (CPD) can find it for you
For example:
Minimum required options: Just give it the minimum duplicate size and the source directory:
$ ./run.sh cpd --minimum-tokens 100 --files /usr/local/java/src/java
Upvotes: 1