All apps/scc

scc

scc

Counts lines of code, comments and complexity per language.

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

Command form

ai-draft · 3 tasks · 14 fields

Count code in files or directories. Generated/minified detection tuning, COCOMO model options and remap flags are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui scc
Count lines of codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories
any
Sort by
7 choicesenum
TasksEach one presets the form for one job
Count a directory
pathssort
JSON report
pathsformatoutput
Per-file breakdown
pathsby_filesort
ParametersOnly these flags are editable in the form
Files or directories
path · positional 0 · repeatable
Output format
enum
--format-ftabularwidejsoncsvcsv-streamcloc-yamlhtmlhtml-tablesqlsql-insert
Output file
path
--output-o
Per-file output
boolean
--by-file
Sort by
enum
--sort-sfilesnamelinesblankscodecommentscomplexity
Only extensions (comma separated)
string
--include-ext-i
Exclude directories (comma separated)
string
--exclude-dir
Ignore matching (regex)
string
--not-match-M
Wide output
boolean
--wide-w
Skip complexity
boolean
--no-complexity-c
Skip COCOMO
boolean
--no-cocomo
Remove duplicate files
boolean
--no-duplicates-d
Ignore .gitignore rules
boolean
--no-gitignore
List supported languages
boolean
--languages-l
SourcesEvery flag above is checked against these
src
completion

github.com

Before it fills your prompt, Otty checks the installed scc against its version. A form that does not match your version is not offered.