1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 09:45:59 +02:00
tldr/pages/common/scc.md

37 lines
783 B
Markdown
Raw Normal View History

2020-08-12 07:32:34 +08:00
# scc
> Count lines of code. Written in Go.
2020-08-12 07:32:34 +08: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 {{[-f|--format]}} {{tabular|wide|json|csv|cloc-yaml|html|html-table}}`
2020-08-12 07:32:34 +08:00
- Only count files with specific file extensions:
`scc {{[-i|--include-ext]}} {{go,java,js}}`
2020-08-12 07:32:34 +08:00
- Exclude directories from being counted:
`scc --exclude-dir {{.git,.hg}}`
- Display output and sort by column (defaults to by files):
`scc {{[-s|--sort]}} {{files|name|lines|blanks|code|comments|complexity}}`
2020-08-12 07:32:34 +08:00
- Display help:
2020-08-12 07:32:34 +08:00
`scc {{[-h|--help]}}`