scc

Tool written in Go that counts lines of code.

TLDR

Print lines of code in the current directory

$ scc
copy

Print lines of code in the target directory

$ scc [path/to/directory]
copy

Display output for every file

$ scc --by-file
copy

Display output using a specific output format (defaults to tabular)

$ scc --format [tabular|wide|json|csv|cloc-yaml|html|html-table]
copy

Only count files with specific file extensions

$ scc --include-ext [go, java, js]
copy

Exclude directories from being counted

$ scc --exclude-dir [.git,.hg]
copy

Display output and sort by column (defaults to by files)

$ scc --sort [files|name|lines|blanks|code|comments|complexity]
copy

Print help for scc

$ scc -h
copy

Copied to clipboard
free 100$ digital ocean credit