BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tool to Find Duplicated Code, Do Static Analysis

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General)
View previous topic :: View next topic  
Author Message
Erik Berry
Guest





PostPosted: Wed Jun 14, 2006 1:22 am    Post subject: Tool to Find Duplicated Code, Do Static Analysis Reply with 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.

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





PostPosted: Wed Jun 14, 2006 8:12 am    Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis Reply with quote



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 Smile) if
you encounter any problems.

HTH, Uli.



--- posted by geoForum on http://delphi.newswhat.com
Back to top
Christian Kaufmann
Guest





PostPosted: Sat Jun 17, 2006 7:40 pm    Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis Reply with 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
Mark Anthony Gohara
Guest





PostPosted: Mon Jun 19, 2006 11:22 pm    Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis Reply with quote

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





PostPosted: Tue Jun 20, 2006 12:27 am    Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis Reply with quote

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





PostPosted: Wed Jun 21, 2006 10:36 pm    Post subject: Re: Tool to Find Duplicated Code, Do Static Analysis Reply with quote

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 Smile.

cu Christian
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.