Count Source Lines

Line count is a useful utility which is based on the LF or CRLF terminated lines in the source file
Download

Count Source Lines Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Jody Sankey
  • Operating Systems:
  • Windows All
  • File Size:
  • 24 KB

Count Source Lines Tags


Count Source Lines Description

Line count is a useful utility which is based on the LF or CRLF terminated lines in the source file. Multiple commands on the same line are counted as one line, one command split across multiple lines is counted as multiple lines. This method is easier to process and is believed to gave a better measure of code complexity than counting number of commands. A comment line which contains no alphanumeric characters is not believed to help document the code and is therefore counted as blank. Where a line contains both code and comment, it is counted as code. In C++ syntax, lines containing only { or ; are considered blank. Lines containing only } are considered code. This is intended give closer alignment with other languages where the looping and branching structures have a terminating line of code such as "END IF". In C++ syntax each line inside a block comment must contain one or more alphanumeric characters to be classed as comment. Lines which do not meet this criteria are classed as blank. In FORTRAN Fixed syntax, lines must have characters between column 7 and 72 inclusive to be classed as code. In FORTRAN Fixed syntax, Compaq Visual FORTRAN allows comments to be started by a ! anywhere on the line, as per free form syntax. This is not in the FORTRAN 77 specification and these lines will be counted as blank.


Count Source Lines Related Software