 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Erik Berry Guest
|
Posted: Wed Jun 14, 2006 1:22 am Post subject: Tool to Find Duplicated Code, Do Static Analysis |
|
|
I once saw a third-party utility for Delphi that could scan a set of
units and locate duplicated lines of code, even if the variable names or
formatting were not an exact match. Does anyone know the name or web site
of the tool? I searched but could not find it again.
I'm not finding the Together code analysis tools to be acceptable with
respect to (especially) speed, reliability, or overall usefulness. I'm
aware of some related tools such as Pascal Analyzer, but I'm more
interested in in-depth static analysis (similar to the very useful tools
for C/C++ code), and less concerned with source statistics, method/unit
lists, source documentation, etc.
Thanks,
Erik |
|
| Back to top |
|
 |
Uli Gerhardt Guest
|
Posted: Wed Jun 14, 2006 8:12 am Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis |
|
|
| Quote: | I once saw a third-party utility for Delphi that could scan a set of
units and locate duplicated lines of code, even if the variable names or
formatting were not an exact match. Does anyone know the name or web site
of the tool? I searched but could not find it again.
|
You could try DupeCheck:
http://www.delphipraxis.net/topic79253,0,asc,0.html
AFAICT it ignores (minor?) differences regarding whitespace. However I
don't think it ignores different variable names. The website and the
program are in German but I guess you can ask the author (or me ) if
you encounter any problems.
HTH, Uli.
--- posted by geoForum on http://delphi.newswhat.com |
|
| Back to top |
|
 |
Christian Kaufmann Guest
|
Posted: Sat Jun 17, 2006 7:40 pm Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis |
|
|
Hello Erik,
some years ago I did something at the university to visualize
duplicated code. It is written in Delphi. I uploaded it at:
www.splash-software.ch/download/duplicate.zip
You can use it, there are no restrictions. The zip file includes the
..exe and the source code.
cu Christian |
|
| Back to top |
|
 |
Mark Anthony Gohara Guest
|
Posted: Mon Jun 19, 2006 11:22 pm Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis |
|
|
Thank you. I was looking for something similar.
"Christian Kaufmann" <christian.kaufmann (AT) gmx (DOT) net> wrote in message
news:105892hg3a218gcggshhthl76pvkku6745 (AT) 4ax (DOT) com...
| Quote: | Hello Erik,
some years ago I did something at the university to visualize
duplicated code. It is written in Delphi. I uploaded it at:
www.splash-software.ch/download/duplicate.zip
You can use it, there are no restrictions. The zip file includes the
.exe and the source code.
cu Christian |
|
|
| Back to top |
|
 |
Erik Berry Guest
|
Posted: Tue Jun 20, 2006 12:27 am Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis |
|
|
Christian Kaufmann wrote:
| Quote: | some years ago I did something at the university to visualize
duplicated code. It is written in Delphi. I uploaded it at:
|
Thanks for your reply. I used it on some Delphi code. It seems that a
list mode where you could sort by # of consecutive matching
lines/characters would be useful in addition to the graph mode, so you
don't have to scan around a potentially large graph representing lots of
files and look for dots that form a line or group. It might also help to
be able to select groups of files in different directories. I realize
you're not actively developing this, so these are just some ideas.
Thanks,
Erik |
|
| Back to top |
|
 |
Christian Kaufmann Guest
|
Posted: Wed Jun 21, 2006 10:36 pm Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis |
|
|
| Quote: | be able to select groups of files in different directories. I realize
you're not actively developing this, so these are just some ideas.
|
That's true. I wrote this application during my time at the
university. Right now I already have enough programs to work on my
daily job.
But you are free to use it and extend it with any features .
cu Christian |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|