Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tips to show similarities in files

In a project, I found some css files that "smell" like there are copy-pasted rules in them.

I wonder what are your strategies for detecting copy-paste stuff in files.

Just of curiosity i'd like to hear your tips and tricks for showing file similarities!

like image 705
Jesper Rønn-Jensen Avatar asked Oct 08 '09 09:10

Jesper Rønn-Jensen


1 Answers

Try Simian.

It is used for copy-paste-detection in source code (Java, C#, C, C++, COBOL, Ruby, JSP, ASP, HTML, XML, Visual Basic, Groovy), but you can run this on plain text files too.

like image 65
The Chairman Avatar answered Dec 06 '22 10:12

The Chairman