Open main menu

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?

Why use scc?

  1. It is very fast and gets faster the more
  2. CPU you throw at it
  3. Accurate
  4. Works very well across multiple platforms without slowdown (Windows, Linux, macOS)
  5. Large language support
  6. Can ignore duplicate files
  7. Has complexity estimations
  8. You need to tell the difference between Coq and Verilog in the same directory
  9. cloc yaml output support so potentially a drop in replacement for some users
  10. Can identify or ignore minified files
  11. Able to identify many #! (shebang) files ADVANCED!
  12. Can ignore large files by lines or bytes


Example: Meza

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)
───────────────────────────────────────────────────────────────