cloc
Count lines of code.
Installation
- Debian package:
cloc
Usage
# Process files recursively starting from <path> and exclude all files and
# directories in <file>
cloc --exclude-list-file=<file> <path>
# Example
cloc --exclude-list-file=.clocignore .
.clocignore
contains paths like this:
.clang-format
.clang-tidy
Makefile
build
compile_commands.json
doc
examples