All apps/scc

scc

scc

Counts lines of code, comments and complexity per language.

Runs as scc|macOS, Linux, Windows|github.com

Autocomplete

Fig spec, with what the manifest adds · 43 options
Published once and never changed; check the digest before caching
sha256
6d993eb6cccf7e39e30d661e9e73e6580df4cb333234f3a6c99dcc57514670dc
Size
8669 bytes
OptionsOn scc itself
--avg-wage
Average salary value used for COCOMO calculations <int>
--binary
Disable binary file detection
--by-file
Display output for every file
--ci
Enable CI output settings where stdout is ASCII
--cocomo-project-type
Change the COCOMO model type (allows custom models, eg. "name,1,1,1,1") <string>
--count-as
Count a file extension as a language (comma-separated key:value list, eg. jst:js,tpl:Markdown) <string>
--debug
Enable debug output
--exclude-dir
Directories to exclude <strings>
--file-gc-count
Number of files to parse before turning the GC on <int>
-f--format
Set output format <string>
--format-multi
Multiple outputs with different formats (comma-separated key:value list, eg. tabular:stdout,csv:scc.csv) <string>
--gen
Identify generated files
--generated-markers
Identify generated files by the presence of a string (comma-separated list) <strings>
-h--help
Help for scc
-i--include-ext
Limit to these file extensions (comma-separated list) <strings>
--include-symlinks
Count symbolic links
-l--languages
Print supported languages and extensions
--large-byte-count
Number of bytes a file can contain before being omitted <int>
--large-line-count
Number of lines a file can contain before being omitted <int>
--min
Identify minified files
-z--min-gen
Identify minified or generated files
--min-gen-line-length
Number of bytes per average line for file to be considered minified or generated <int>
--no-cocomo
Skip COCOMO calculation
-c--no-complexity
Skip code complexity calculation
-d--no-duplicates
Remove duplicate files from stats and output
--no-gen
Ignore generated files in output (implies --gen)
--no-gitignore
Disables .gitignore file logic
--no-ignore
Disables .ignore file logic
--no-large
Ignore files over certain byte and line size set by --max-line-count and --max-byte-count
--no-min
Ignore minified files in output (implies --min)
--no-min-gen
Ignore minified or generated files in output (implies --min-gen)
--no-size
Remove size calculation output
-M--not-match
Ignore files and directories matching regular expression <regex>
-o--output
Output filename (defaults to stdout if not provided) <string>
--remap-all
Inspect every file and set its type by checking for a string (comma-separated key:value list, eg. "-*- C++ -*-":"C Header") <string>
--remap-unknown
Inspect files of unknown type and set its type by checking for a string (comma-separated key:value list, eg. "-*- C++ -*-":"C Header") <string>
--size-unit
Set the unit used for file size output <string>
-s--sort
Column to sort by <string>
--sql-project
Use supplied name as the project identifier for the current run. Only valid with the '--format sql' or '--format sql-insert' option <string>
-t--trace
Enable trace output (not recommended when processing multiple files)
-v--verbose
Verbose output
--version
Version for scc
-w--wide
Wider output with additional statistics (implies --complexity)
ArgumentsPositional, in order
<files or directories>
· optional · repeatable · filepaths