Are there any DRYer tools for code?

I have a large code base, and there are a lot of repeating or almost repeating codes all over the place, it's about unDRY, as the code can get, but tracking “duplicates” is difficult, so I was wondering if there are any tools to find potential DRYable The code, something like a comparison tool or a Hamming distance analyzer, doesn’t need linguistic knowledge or something like that.

So some hints as a tool like this?

+6
coding-style dry
source share
6 answers

Duplo (open source) runs in C, C ++, Java, C # and VB.Net. I tried this once, and he found enough duplicated code to work with us for a long time.

I heard about Simian (commercial), but have not tried.

+1
source share
+3
source share

If you work in ruby, you can try this .

+2
source share

I am using Simian in VS. This is pretty good, not really.

+1
source share

Semantic Designs Clone Dr is a commercial product that finds duplicate code in a large number of different programming languages. http://www.semdesigns.com/Products/Clone/index.html

Large companies can afford this product. Faces ... not so many. I wish there were open source projects there. Perhaps this will be an interesting project for work. If we knew about the community of programmers for some time on their hands ...

+1
source share

CloneDR semantic projects detect duplicate clones that are accurate and close to zero based on the langauge structure, so it is not fooled by changes in spaces or line breaks, inserted / modified comments, or even changed variable names.

It uses parser processing fronts to work with C, C ++, C #, Java, COBOL, PHP, Python, Fortran, Ada, ...

There are several examples of website cloning analysis reports for different languages.

+1
source share

All Articles