Skip to content

vdichev/scala-line-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This is an Awk script copied from http://code.google.com/p/line-counting/ originally written to compute C code metrics and modified to calculate nested comments as in Scala. It looks at code and comments via regular expressions and computes:

  • Lines of code (non-blank)
  • Number of comments (multiline and single-line accounted for)
  • Raw lines of text
  • Total code
  • Total comments
  • Comment percentage

Usage

Run it like so:

awk -f lc.awk $(find /project/dir -name "*.scala")

About

Count number of lines of code and comments in scala codebases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published