K
K
kk862011-07-06 10:27:34
Analytics
kk86, 2011-07-06 10:27:34

Are there static analyzers that detect the presence of code pattern repetitions?

Interested in code analyzers written in C#, PHP. But, I think that in the comments you can write about tools for other languages, because. and other people might be interested.
The legs of the problem grow from where? I want to write an extension method, but I don’t know how to find repeated places in the code later (a simple search will not be able to identify them) in order to replace them with a method call.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2011-07-06
@kk86

Copy/Paste Detector (CPD) for PHP code

A
Asya Rak, 2016-08-08
@AsyaRak

There are many analyzers, the question is whether you are ready to pay money for them.
Alternatively, download the demo. Here is a good article with info on the case.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question