Sloc, Cloc and Code. Count lines of code in a directory with complexity estimation.
Version 3.7.0
Ben Boyter <ben@boyter.org> + Contributors
$ go install github.com/boyter/scc/v3@latest
kakoune-master
1698e81 2026-04-17 10:10 JAltmannin o [master] {origin/master} {origin/HEAD}
└──> sloclocode --avg-wage 60000 --currency-symbol '€' --count-as kak:sh --percent --sort code --wide --no-duplicates --uloc kakoune-master
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity Complexity/Lines
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
C++ 58 27735 3039 198 24498 4155 978.27
Percentage 16.1% 45.2% 36.8% 6.1% 49.1% 78.0%
(ULOC) 15214
-------------------------------------------------------------------------------------------------------------
Shell 197 20966 2887 2808 15271 375 667.83
Percentage 54.6% 34.2% 35.0% 86.1% 30.6% 7.0%
(ULOC) 11909
-------------------------------------------------------------------------------------------------------------
C++ Header 85 11102 2156 182 8764 682 403.78
Percentage 23.5% 18.1% 26.1% 5.6% 17.6% 12.8%
(ULOC) 5787
-------------------------------------------------------------------------------------------------------------
Python 2 550 58 55 437 35 15.45
Percentage 0.6% 0.9% 0.7% 1.7% 0.9% 0.7%
(ULOC) 358
-------------------------------------------------------------------------------------------------------------
YAML 12 324 27 1 296 0 0.00
Percentage 3.3% 0.5% 0.3% 0.0% 0.6% 0.0%
(ULOC) 160
-------------------------------------------------------------------------------------------------------------
Perl 2 278 12 2 264 58 46.77
Percentage 0.6% 0.5% 0.1% 0.1% 0.5% 1.1%
(ULOC) 193
-------------------------------------------------------------------------------------------------------------
Makefile 1 224 59 3 162 14 8.64
Percentage 0.3% 0.4% 0.7% 0.1% 0.3% 0.3%
(ULOC) 164
-------------------------------------------------------------------------------------------------------------
SVG 1 98 3 3 92 0 0.00
Percentage 0.3% 0.2% 0.0% 0.1% 0.2% 0.0%
(ULOC) 79
-------------------------------------------------------------------------------------------------------------
Ruby 1 80 12 8 60 5 8.33
Percentage 0.3% 0.1% 0.1% 0.2% 0.1% 0.1%
(ULOC) 60
-------------------------------------------------------------------------------------------------------------
License 1 24 4 0 20 0 0.00
Percentage 0.3% 0.0% 0.0% 0.0% 0.0% 0.0%
(ULOC) 21
-------------------------------------------------------------------------------------------------------------
Markdown 1 7 1 0 6 0 0.00
Percentage 0.3% 0.0% 0.0% 0.0% 0.0% 0.0%
(ULOC) 7
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Total 361 61388 8258 3260 49870 5324 2129.08
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Unique Lines of Code (ULOC) 33652
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop (organic) €1,746,319
Estimated Schedule Effort (organic) 16.59 months
Estimated People Required (organic) 8.77
Processed 2251637 bytes, 2.252 megabytes (SI)
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
kakoune-lsp
a29446e 2026-04-16 17:15 JAltmannin o [master] {origin/master} {origin/HEAD}
└──> sloclocode --avg-wage 60000 --currency-symbol '€' --count-as kak:sh --percent --sort code --wide --no-duplicates --uloc kakoune-lsp
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity Complexity/Lines
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Rust 44 15120 930 468 13722 1181 350.14
Percentage 60.3% 73.3% 61.6% 49.8% 75.5% 86.8%
(ULOC) 8283
-------------------------------------------------------------------------------------------------------------
Shell 19 3951 351 358 3242 85 44.63
Percentage 26.0% 19.2% 23.2% 38.1% 17.8% 6.2%
(ULOC) 2469
-------------------------------------------------------------------------------------------------------------
Python 1 748 79 105 564 95 16.84
Percentage 1.4% 3.6% 5.2% 11.2% 3.1% 7.0%
(ULOC) 583
-------------------------------------------------------------------------------------------------------------
Markdown 1 536 112 0 424 0 0.00
Percentage 1.4% 2.6% 7.4% 0.0% 2.3% 0.0%
(ULOC) 361
-------------------------------------------------------------------------------------------------------------
YAML 3 166 25 8 133 0 0.00
Percentage 4.1% 0.8% 1.7% 0.9% 0.7% 0.0%
(ULOC) 115
-------------------------------------------------------------------------------------------------------------
TOML 2 50 3 0 47 0 0.00
Percentage 2.7% 0.2% 0.2% 0.0% 0.3% 0.0%
(ULOC) 48
-------------------------------------------------------------------------------------------------------------
License 2 27 5 0 22 0 0.00
Percentage 2.7% 0.1% 0.3% 0.0% 0.1% 0.0%
(ULOC) 23
-------------------------------------------------------------------------------------------------------------
Makefile 1 16 5 0 11 0 0.00
Percentage 1.4% 0.1% 0.3% 0.0% 0.1% 0.0%
(ULOC) 12
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Total 73 20614 1510 939 18165 1361 411.61
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Unique Lines of Code (ULOC) 11851
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop (organic) €604,769
Estimated Schedule Effort (organic) 11.09 months
Estimated People Required (organic) 4.55
Processed 730648 bytes, 0.731 megabytes (SI)
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Eak
3b12937 2025-12-29 10:09 ftonneau o [main] {origin/main} {origin/HEAD}
└──> sloclocode --avg-wage 60000 --currency-symbol '€' --count-as kak:sh --percent --sort code --wide --no-duplicates --uloc eak
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity Complexity/Lines
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Shell 1 1164 28 4 1132 0 0.00
Percentage 33.3% 52.3% 8.0% 100.0% 60.6% NaN%
(ULOC) 662
-------------------------------------------------------------------------------------------------------------
Markdown 1 570 176 0 394 0 0.00
Percentage 33.3% 25.6% 50.1% 0.0% 21.1% NaN%
(ULOC) 385
-------------------------------------------------------------------------------------------------------------
Plain Text 1 490 147 0 343 0 0.00
Percentage 33.3% 22.0% 41.9% 0.0% 18.4% NaN%
(ULOC) 337
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Total 3 2224 351 4 1869 0 0.00
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Unique Lines of Code (ULOC) 1142
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop (organic) €55,536
Estimated Schedule Effort (organic) 4.47 months
Estimated People Required (organic) 1.03
Processed 86593 bytes, 0.087 megabytes (SI)
─────────────────────────────────────────────────────────────────────────────────────────────────────────────