.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.

code metrics in vs 2010 ultimate

for else, there's sourcemonitor source monitor


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -