Glossary
Blank line — a line with nothing on it, or only whitespace. Inside a multi-line string, an empty line is not blank; it is part of the string (chapter 6).
Blobs — the field in tokei's JSON where a file's embedded-language counts are kept, one level below the language totals (chapter 9).
Code line — a line the counter's state machine places in the Code column: anything carrying program text, including lines that also carry a comment (chapter 6).
Comment line — a line carrying only commentary, by the language's rules — including, for prose languages, every line (chapters 4 and 6).
Configuration file —
tokei.toml (or .tokeirc),
found in the config folder, the
home folder, or the folder you
run from; the last wins
(chapter 10).
Detector — the part of tokei that assigns each file a language, from its filename, its extension, or its shebang (chapter 5).
Doc comment — a comment
written to be rendered as
documentation (/// in Rust);
tokei 15 reports Rust's as
embedded Markdown (chapter 7).
Docstring — in Python, a string literal used as documentation. A string, not a comment, and counted as code unless the configuration says otherwise (chapters 7 and 10).
Embedded language — a second language counted inside a host file: CSS and JavaScript in a web page, a fenced block in Markdown (chapter 7).
Hidden file — a file or
folder whose name begins with a
dot; skipped unless --hidden
is passed (chapter 8).
Ignore file — .gitignore,
.ignore or .tokeignore: a
list of names the walker skips.
A .gitignore works only inside
a git repository (chapter 8).
Language definition — the
built-in entry for one language:
its extensions, its comment
markers, whether its block
comments nest, what it embeds.
tokei --languages prints the
map (chapter 5).
Report — in the JSON output, one file's counts under its language (chapter 9).
Shebang — the #! first
line of a script, naming its
interpreter. Evidence for the
detector; counted as a comment
(chapter 5).
Streaming output — the
--streaming format: one record
per file, for other programs to
read (chapter 9).
SLOC — "source lines of code", the older name for what this guide calls the Code column.
Tokeignore — .tokeignore,
tokei's own ignore file, in the
same format as .gitignore
(chapter 8).
Total (row) — a language's or the table's sum. A language (Total) includes its embedded children (chapters 4 and 7).
Walker — the part of tokei that collects the files to be counted, applying the hidden, ignore and exclusion filters (chapter 2).