scc [command...]

Sloc, Cloc and Code. Count lines of code in a directory with complexity estimation

Arguments

NameDescription
commandfilepaths, folders

Options

NameDescription
--avg-wage <command>Average salary value used for COCOMO calculations
--binaryDisable binary file detection
--by-fileDisplay output for every file
--ciEnable CI output settings where stdout is ASCII
--cocomo-project-type <command>Change the COCOMO model type (allows custom models, eg. "name,1,1,1,1")
--count-as <command>Count a file extension as a language (comma-separated key:value list, eg. jst:js,tpl:Markdown)
--debugEnable debug output
--exclude-dir <command>Directories to exclude
--file-gc-count <command>Number of files to parse before turning the GC on
-f,--format <command>Set output format
--format-multi <command>Multiple outputs with different formats (comma-separated key:value list, eg. tabular:stdout,csv:scc.csv)
--genIdentify generated files
--generated-markers <command>Identify generated files by the presence of a string (comma-separated list)
-h,--helpHelp for scc
-i,--include-ext <command>Limit to these file extensions (comma-separated list)
--include-symlinksCount symbolic links
-l,--languagesPrint supported languages and extensions
--large-byte-count <command>Number of bytes a file can contain before being omitted
--large-line-count <command>Number of lines a file can contain before being omitted
--minIdentify minified files
-z,--min-genIdentify minified or generated files
--min-gen-line-length <command>Number of bytes per average line for file to be considered minified or generated
--no-cocomoSkip COCOMO calculation
-c,--no-complexitySkip code complexity calculation
-d,--no-duplicatesRemove duplicate files from stats and output
--no-genIgnore generated files in output (implies --gen)
--no-gitignoreDisables .gitignore file logic
--no-ignoreDisables .ignore file logic
--no-largeIgnore files over certain byte and line size set by --max-line-count and --max-byte-count
--no-minIgnore minified files in output (implies --min)
--no-min-genIgnore minified or generated files in output (implies --min-gen)
--no-sizeRemove size calculation output
-M,--not-match <command>Ignore files and directories matching regular expression
-o,--output <command>Output filename (defaults to stdout if not provided)
--remap-all <command>Inspect every file and set its type by checking for a string (comma-separated key:value list, eg. "-*- C++ -*-":"C Header")
--remap-unknown <command>Inspect files of unknown type and set its type by checking for a string (comma-separated key:value list, eg. "-*- C++ -*-":"C Header")
--size-unit <command>Set the unit used for file size output
-s,--sort <command>Column to sort by
--sql-project <command>Use supplied name as the project identifier for the current run. Only valid with the '--format sql' or '--format sql-insert' option
-t,--traceEnable trace output (not recommended when processing multiple files)
-v,--verboseVerbose output
--versionVersion for scc
-w,--wideWider output with additional statistics (implies --complexity)