This metric measures the number of statements in a file.

If there are too many statements in a file, it is generally for one of two reasons:

Long individual functions should be refactored into multiple, smaller parts. Files that contain many functions should be split up into smaller, more coherent units.

  • M. Fowler. Refactoring. Addison-Wesley, 1999.