Skip to content
/ jloc Public

Counts the lines of code of all java files within one directory recursively.

License

Notifications You must be signed in to change notification settings

baumato/jloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Build Status Sonar Quality Gate

jloc

Counts the lines of code of all java files within one directory recursively. This application either counts physical lines of code or the source lines of code (without the empty lines and without the comments). Before counting the lines the java files get parsed and formatted to ensure comparability across projects.

Requirements

Java 11

Build

> mvnw clean package
  • Or build on Windows
> mvnw.cmd clean package

Download

Download .jsh (directly executable on linux) or .jar file from releases.

Usage

Usage:
 -X (--debug) BOOLEAN                  : Produce execution debug output (default: false)
 -cm (--calculation-mode) [LOC | SLOC] : Mode of calculation, either loc or sloc (w/o empty lines and comments) (default: LOC)
 -d (--directory) PATH                 : The directory to be recursively scanned.
 -e (--excludeDirs) FOLDER_NAMES       : Folder to be omitted
 -v (--verbose) BOOLEAN                : Verbose (default: false)

Example:
 -X (--debug) BOOLEAN -cm (--calculation-mode) [LOC | SLOC] -d (--directory) PATH -e (--excludeDirs) FOLDER_NAMES -v (--verbose) BOOLEAN

Example (on Linux):

> jloc.jsh -d /path/to/your/directory -e target bin -cm sloc

Example (every system):

> java -jar ./target/jloc.jar -d /path/to/your/directory -e target bin -cm sloc

About

Counts the lines of code of all java files within one directory recursively.

Resources

License

Stars

Watchers

Forks

Packages

No packages published