.net - How to count the number of code lines in a C# solution, without comments and empty lines, and other redundant stuff, etc? -
by redundant stuff, mean namespaces, know necessary if there 10k of them, doesn't add valuable info table.
could done using linq?
no need reinvent wheel. take @ visual studio code metrics powertool 11.0
overview
the code metrics powertool command line utility calculates code metrics managed code , saves them xml file. tool enables teams collect , report code metrics part of build process. code metrics calculated are:
• maintainability index
• cyclomatic complexity
• depth of inheritance
• class coupling
• lines of code (loc)
i know said don't have ultimate, wanted show you're missing.
for else, there's sourcemonitor
Comments
Post a Comment