Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate code detection: Tools you can use

I am looking out for a software that identifies duplicate/redundant Javascript code. I found one such tool named CloneDR, but don't know how good it is .

I was looking out for similar open source tools . Please guide .

like image 944
Aazim Avatar asked Jun 28 '11 09:06

Aazim


People also ask

What is CPD tool?

Continuing Professional Development is a powerful learning tool that professionals from across all industries can apply to improving skills and developing their knowledge. The types of CPD vary depending on a range of different learning methods. Step 01.

What is duplicated in SonarQube?

SonarQube is telling you that this portion of the code contains duplicated logic. This doesn't necessarily mean that the code itself is copy-pasted, but that, conceptually, the exact same thing is happening at multiple places.

What is copy paste detector?

Copy Paste Detector performs a static analysis of the source code and tries to detect similar code snippets. If the Detector identifies many similarities between the submitted extension and a previously known extension, we may mark the check as failed if there is strong evidence of plagiarism.


1 Answers

I used PMD's Copy/Paste Detector (CPD) last year on a project. There was some code for EcmascriptLanguage support but I recall having to update GUI.java and recompile the project to get it to work.

like image 123
Kevin Hakanson Avatar answered Nov 09 '22 03:11

Kevin Hakanson