Child pages
  • Line Counting Definition
Skip to end of metadata
Go to start of metadata

What are the Line counting definitions?

  • LC: Line Count
  • SLOC: Source Line Of Code
  • CLOC: Comment Line Of Code
  • MLOC : Mixed Line Of Code
  • ELOC: Effective Line Of Code

SLOC = Line count excluding blank lines and comments
CLOC = Comment lines
ELOC = Code linesELOC = SLOC - (BRAC + HLOC)
BRAC = Brace lines
BLANK = Blank lines
STAT = Lines with instructions
MLOC = Lines of type ELOC and CLOC
COMR = Comment rateCOMR = CLOC / (ELOC + CLOC - MLOC)
HCOM = Comment lines outside functionsHCOM is included in CLOC
  • No labels