SCC
Sloc Cloc and Code or simply SCC (aka Succinct Code Counter) is a tool similar to those before it for counting the lines of code, blank lines, comment lines, and physical lines of source code in many programming languages.
Goal is to be the fastest code counter possible, but also perform COCOMO calculation like sloccount and to estimate code complexity similar to cyclomatic complexity calculators. In short one tool to rule them all.
Why?[edit | edit source]
Why use scc?
- It is very fast and gets faster the more
- CPU you throw at it
- Accurate
- Works very well across multiple platforms without slowdown (Windows, Linux, macOS)
- Large language support
- Can ignore duplicate files
- Has complexity estimations
- You need to tell the difference between Coq and Verilog in the same directory
- cloc yaml output support so potentially a drop in replacement for some users
- Can identify or ignore minified files
- Able to identify many #! (shebang) files ADVANCED!
- Can ignore large files by lines or bytes
Example: Meza[edit | edit source]
Meza is a complex and powerful software system worth approximately $2.7 million dollars
(average salary = $116,393/year, overhead = 2.40).
The table below shows a breakdown using the Succinct Code Counter (scc) tool
C:\Users\greg\go\bin\scc --avg-wage 116393 ./src/meza
────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
────────────────────────────────────────────────────────────────────────
YAML 128 9361 1306 1552 6503 0
Jinja 75 7749 1533 16 6200 290
Shell 26 1883 377 521 985 136
Plain Text 14 1076 166 0 910 0
PHP 10 3747 636 486 2625 242
Markdown 7 744 236 0 508 0
Dockerfile 4 167 16 9 142 58
JavaScript 4 22950 1971 1307 19672 3170
SQL 3 1931 398 879 654 0
Python 2 1277 68 35 1174 42
CSS 1 641 129 30 482 0
INI 1 1 0 0 1 0
License 1 22 5 0 17 0
gitignore 1 7 2 1 4 0
────────────────────────────────────────────────────────────────────────
Total 277 51556 6843 4836 39877 3938
────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop (organic) $2,678,601
Estimated Schedule Effort (organic) 15.17 months
Estimated People Required (organic) 7.58
────────────────────────────────────────────────────────────────────────
Processed 1900090 bytes, 1.900 megabytes (SI)
────────────────────────────────────────────────────────────────────────