Please suggest some free tools which will help me to get Lines-of-Code metrics for C# projects using the command line.
Function Kata „LOC“Implement a function that counts the Lines of Code (LOC) in a C# source text. The source text is given as a string. The function returns the number of executable lines of code. Lines containing only comments or whitespace should be filtered [1].
We can check all of the lines of code in a file or directory by the command cloc --by-file.
Lines of Code or LOC (also known as Source Lines of Code - SLOC) is a quantitative measurement in computer programming for files that contains code from a computer programming language, in text form. The number of lines indicates the size of a given file and gives some indication of the work involved.
You can generate code metrics results for an entire solution in any of the following ways: From the menu bar, select Analyze > Calculate Code Metrics > For Solution. In Solution Explorer, right-click the solution and then select Calculate Code Metrics.
I was searching for a similar tool. Found Microsoft Line of Code (LOC) Counter Its pretty good. Feature list from code.msdn page
Features:
i got the LoC using Ndepend
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With