Search code examples
c#javascriptactionscriptcode-analysislines-of-code

How do I get a breakup of my Lines Of Code?


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

Solution

  • I found these apps capable of LOC statistics for Flash/Flex ActionScript projects.