I need a very specific tool for VB (or multi-language). I ask for it, before I start making one myself (probably, in python).
What I need:
- The tool must crawl, recursivelly or not, a path, searching for a list of extension, such as .bas, .frm, .xxx
- Then, It has to parse that files, searching for functions, routines, etc.
- And finally, it must output what it found.
I base this on the idea of, "reducing code redundance", in an scenario where, bad programmers make a lot of functions that do the same, sometimes with the same name, sometimes not. There are 4 cases:
- Case 1: Same name, Same content.
- Case 2: Same name, Diff content.
- Case 3: Diff name, Same content.
- Case 4: Diff name, Diff Content.
So, the output, should be something like this
===========================================================================
RESULT
===========================================================================
Errors:
---------------------------------------------------------------------------
==Name, ==Content --> 3: (Func(), Foo(), Bar()) In files (f,f2,f3)
!=Name, ==Content --> 2: (Func() + Func1(), Bar() + Bar1()) In Files (f4)
---------------------------------------------------------------------------
Warnings:
==Name, !=Content --> 1 (Foobar()) In Files (f19)
---------------------------------------------------------------------------
This is to give you an idea of what I need.
So, the answer is: is there any tool that acomplish something similar to this???
P.S: Yes, we should wrote good code, in first instance, but, you know, stuff happens.