count_lines_of_code
Count total, code, blank, and comment lines per file extension across a codebase. Provide a root path, file extensions, and directories to exclude for line counts.
Instructions
Count lines of code across the codebase.
Counts total lines, code lines (non-blank, non-comment), blank lines, and comment lines per file extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Root directory to scan. Defaults to cwd. | . |
| extensions | No | Comma-separated list of file extensions to count. | .py,.js,.ts,.jsx,.tsx,.cs,.go,.rs,.java,.cpp,.c,.h |
| exclude_dirs | No | Comma-separated list of directory names to skip. | .venv,node_modules,.git,dist,build,__pycache__ |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||