2020-08-12 00:32:34 +01:00
|
|
|
# scc
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Count lines of code. Written in Go.
|
2020-08-12 00:32:34 +01:00
|
|
|
> More information: <https://github.com/boyter/scc>.
|
|
|
|
|
|
|
|
- Print lines of code in the current directory:
|
|
|
|
|
|
|
|
`scc`
|
|
|
|
|
|
|
|
- Print lines of code in the target directory:
|
|
|
|
|
|
|
|
`scc {{path/to/directory}}`
|
|
|
|
|
|
|
|
- Display output for every file:
|
|
|
|
|
|
|
|
`scc --by-file`
|
|
|
|
|
|
|
|
- Display output using a specific output format (defaults to `tabular`):
|
|
|
|
|
|
|
|
`scc --format {{tabular|wide|json|csv|cloc-yaml|html|html-table}}`
|
|
|
|
|
|
|
|
- Only count files with specific file extensions:
|
|
|
|
|
2024-01-12 18:53:35 +00:00
|
|
|
`scc --include-ext {{go,java,js}}`
|
2020-08-12 00:32:34 +01:00
|
|
|
|
|
|
|
- Exclude directories from being counted:
|
|
|
|
|
|
|
|
`scc --exclude-dir {{.git,.hg}}`
|
|
|
|
|
|
|
|
- Display output and sort by column (defaults to by files):
|
|
|
|
|
|
|
|
`scc --sort {{files|name|lines|blanks|code|comments|complexity}}`
|
|
|
|
|
2024-01-30 04:55:24 +00:00
|
|
|
- Display help:
|
2020-08-12 00:32:34 +01:00
|
|
|
|
|
|
|
`scc -h`
|