Hi,
could someone help me by telling, how to find total number oflines in the code. The detail is like, I have a project which contains a number of files. Each file has different number of lines as code. I want to know is there any easy way/shortcut/options for finding the total number of line for the whole project.
I also checked the .M51 (map) file, it is indicating the number of lines in sequence from 1 onward for each function, but its really hectic to count for each and then add. Similarly editor is also showing the lines along the code inthe file but again its laborious to count and then add.
Looking for clever response.
Regards Asad
Indeed!
Quite often, an unnecessary terseness is found in nasty code
"Quite often, an unnecessary terseness is found in nasty code"
Which is why code complexity is a bettery metric than number of source lines. Who likes an if statement with three &&, seven || and maybe one or more bit operators thrown in for measure?
The problem is that it is so easy to think about source line count that lots of people put that at the top of their list when they decides that they need to think about measuring code quality. But the first thing that comes to mind isn't always the best thing.
To all respected replier,
I understand that simple line count is not a good measure for software quality. My intention was to count the number of lines (separately for comments, code, blank) and then use the code lines only in my calculation (notice that I am not using the line count directly/only for software quality), instead I am using it in my calculations. I appreciate all genius replies. Thanks.