rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.88k stars 299 forks source link

Report total LoC and Module count in Code Metrics #5546

Open daFreeMan opened 3 years ago

daFreeMan commented 3 years ago

Justification Bug reports often come in with reports of the project being "huge" and causing the issue, while a "small" one doesn't. There is no objective measurement for this. Having the Duck provide module and form counts & LoC count will help objectify this.

Description Lines of Code appears in the Code Metrics pane when clicking on a specific module, but it's not totaled up anywhere. Clicking on the "Project" node in the CM pane should provide these counts for the entire project. As an added bonus, clicking on a RD folder could show these counts for that particular folder.

Additional context

Additionally, we all like to pat ourselves on the back about how many LoC we've written, or, how many LoC we've managed to carve out of the stinking pile of poo we inherited.

2020-07-23 10_56_15-Microsoft Visual Basic for Applications - ROIReport -  EdwAccess (Code)

2020-07-23 10_57_15-Microsoft Visual Basic for Applications - ROIReport -  EdwAccess (Code)

Irubataru commented 3 years ago

Maybe it would also be a good idea to have an "export anonymised statistics" from the about menu that someone can simply paste into the issue template. Could include info about lines of code, number of modules, classes, tests, library references, etc.