views:

376

answers:

6

see also "Any tools to check for duplicate VB.NET code?"

A friend of mine only as access to the Express editions of Visual Studio and I am trying to help him refactor to remove a lot of duplication.

A: 

Try StyleCop tool

Koistya Navin
StyleCop does not include rules for finding duplicate code.
Christian
+3  A: 

Clone Detective appears as though it might work for you. I haven't used it before, but I stumbled across it on codeplex this week.

Timothy Carter
I've used it once or twice before but it did report some false positives, not many though.
TWith2Sugars
Looking at the page, this states VS Standard or higher. It won't work with Express.
BlackWasp
A: 

More as fyi, since you mentioned 'express edition' you might need to look for something that would work outside of VS, since I don't believe the express editions support plugins

the empirical programmer
The express editions explicitly don't support plug-ins. Technically it does, as some of the features shipped by MS are plug-ins, but hoops are jumped to make them work.
Simeon Pilgrim
+2  A: 

You could take a look at Simian or DuplicateFinder. Neither have a dependency on the IDE, although you can integrate Simian quite easily.

HowardvanRooijen
A: 

Your friend should take a look at Gendarme, a FOSS and cross-platform alternative to Microsoft's FxCop/Code Analysis which is part of the Mono project. It includes rules that check for duplicated code.

Christian
A: 

See CloneDR, which operates on many langauges, including C#.

EDIT October 2010: VB6, VBScript and VB.net added as languages supported by CloneDR. There is no specific support for MS IDEs, but it operates on a simple list of source files, and produces a nice HTML report, so not much integration is needed. See sample reports at link.

Ira Baxter