From 6461fb63f29d03b44517926eba6721136d142487 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Wed, 12 Aug 2020 07:32:34 +0800 Subject: [PATCH] scc: add page (#4248) --- pages/common/scc.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/scc.md diff --git a/pages/common/scc.md b/pages/common/scc.md new file mode 100644 index 000000000..0e4d8e58d --- /dev/null +++ b/pages/common/scc.md @@ -0,0 +1,36 @@ +# scc + +> Tool written in Go that counts lines of code. +> More information: . + +- 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: + +`scc --include-ext {{go, java, js}}` + +- 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}}` + +- Print help for scc: + +`scc -h`