Any tools to check for duplicate VB.NET code?

前端 未结 9 2225
小蘑菇
小蘑菇 2021-02-07 19:31

I wish to get a quick feeling for how much “copy and paste” coding we have, there are many tools for C# / Java to check for this type of thing. Are there any such tools that wo

9条回答
  •  执笔经年
    2021-02-07 19:38

    [I'm the author of CloneDR ("Clone Doctor").]

    CloneDR is parameterized by a full grammar for the programming language in question. So it doesn't just match lines. Rather, it can find clones which are syntactically well-formed, with variations that are more than just identifier changes, regardless of where they stop or start in a line.

    The engine on which CloneDR rests, The DMS Software Reengineering Toolkit" is a tool for analyzing large scale systems in any programming language, and uses language descriptions to drive the analysis. DMS has a wide variety of language front ends already available.

    Presently it has VBScript and VB6 (as dialects of "Visual Basic"). It doesn't have VB.net, but that would be pretty straightforward to do given the DMS infrastructure and our experience with lots of other languages.

    So, CloneDR could do this just fine, with a small bit of effort on our part.

    EDIT October 2010: VB.net added as a language CloneDR can process.

提交回复
热议问题