3 ms·
I've run tokei [0] on the Linux git repository on the latest commit [1] and this was the output: ============================================================
by SushiHippie 3y ago
I've run tokei [0] on the Linux git repository on the latest commit [1] and this was the output:
===============================================================================
Language Files Lines Code Comments Blanks
===============================================================================
C 33553 23772322 17694564 2662642 3415116
C Header 24554 9562920 7395591 1436546 730783
Device Tree 5041 1512839 1240129 76384 196326
ReStructuredText 3473 711669 539971 0 171698
JSON 788 443098 443096 0 2
YAML 3905 433860 352107 16626 65127
GNU Style Assembly 1317 372131 271873 55613 44645
Shell 894 172036 120033 21590 30413
Plain Text 1739 151033 0 123992 27041
Makefile 2946 76889 52985 12355 11549
Python 203 68545 54627 4452 9466
SVG 74 49420 48159 1171 90
Perl 59 43992 34124 4074 5794
Happy 10 6069 5359 0 710
Assembly 5 3319 3065 0 254
C++ 5 2138 1860 61 217
BASH 59 1943 1318 335 290
Unreal Script 5 707 445 158 104
ASN.1 16 660 445 87 128
Autoconf 5 429 373 26 30
LD Script 8 376 288 29 59
CSS 3 295 172 69 54
Gherkin (Cucumber) 1 291 199 58 34
TeX 1 236 156 74 6
XSL 10 200 122 52 26
HEX 2 173 173 0 0
Module-Definition 2 128 113 0 15
C++ Header 2 125 59 55 11
RPM Specfile 1 108 93 1 14
Objective-C 1 89 72 0 17
Vim script 1 42 33 6 3
Markdown 1 36 0 27 9
Automake 3 31 23 3 5
Ruby 1 29 25 0 4
INI 2 13 6 5 2
TOML 1 12 2 9 1
Apache Velocity 1 12 12 0 0
CMake 2 8 8 0 0
-------------------------------------------------------------------------------
Rust 64 12637 9489 1612 1536
|- Markdown 55 8243 808 5557 1878
(Total) 20880 10297 7169 3414
-------------------------------------------------------------------------------
HTML 2 28 22 3 3
|- JavaScript 1 7 7 0 0
(Total) 35 29 3 3
===============================================================================
Total 78760 37400888 28271191 4418115 4711582
===============================================================================
So If we would only count code and not comments, it is only 9489 LoC Rust. Which would be about 0.03% and if we take all lines and not only LoC it would be around 0.05%
[0] https://github.com/XAMPPRocky/tokei https://github.com/XAMPPRocky/tokei
[1] https://github.com/torvalds/linux/commit/b401b621758e46812da61fa58a67c3fd8d91de0d https://github.com/torvalds/linux/commit/b401b621758e46812da...