Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.83 KB

README.md

File metadata and controls

57 lines (41 loc) · 1.83 KB

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