Is there a tool that calculates various LOC statistics? It would have to support popular languages like C++, C#, Python, PHP, JavaScript, ActionScript, etc and interpret code accordingly.
An example of the statistics I’m looking for:
- 350 Physical lines of code — including braces
- 200 Logical lines of code — actual code
- 190 Comment lines
- 68 Variables
- 28 Methods/Functions
- 5 Classes
- 3 Namespaces
I found these apps capable of LOC statistics for Flash/Flex ActionScript projects.