apple / swift-cmark
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 61 files with 28,714 lines of code.
    • 5 very long files (22,259 lines of code)
    • 2 long files (1,627 lines of code)
    • 10 medium size files (2,667 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,111 lines of code)
    • 36 very small files (1,050 lines of code)
77% | 5% | 9% | 3% | 3%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
c77% | 8% | 8% | 4% | 1%
inc100% | 0% | 0% | 0% | 0%
h0% | 0% | 42% | 0% | 57%
xsl0% | 0% | 100% | 0% | 0%
py0% | 0% | 83% | 0% | 16%
rkt0% | 0% | 0% | 100% | 0%
re0% | 0% | 0% | 100% | 0%
cmake0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
pl0% | 0% | 0% | 0% | 100%
swift0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
rb0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src83% | 2% | 7% | 3% | 2%
api_test0% | 88% | 0% | 0% | 11%
tools0% | 0% | 88% | 0% | 11%
bench0% | 0% | 96% | 0% | 3%
src/include0% | 0% | 84% | 0% | 15%
wrappers0% | 0% | 0% | 83% | 16%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
scanners.c
in src
13715 20
case_fold_switch.inc
in src
4327 -
entities.inc
in src
2131 -
inlines.c
in src
1083 27
blocks.c
in src
1003 34
main.c
in api_test
912 30
node.c
in src
715 37
commonmark.c
in src
414 5
latex.c
in src
403 4
html.c
in src
297 4
utf8.c
in src
268 9
xsl
xml2md.xsl
in tools
234 -
statistics.py
in bench
219 10
man.c
in src
218 2
buffer.c
in src
210 21
cmark.h
in src
202 -
cmark.h
in src/include
202 -
main.c
in src
188 3
rkt
wrapper.rkt
in wrappers
181 -
xml.c
in src
155 3
render.c
in src
154 5
houdini_html_u.c
in src
116 3
re
scanners.re
in src
108 20
references.c
in src
107 5
iterator.c
in src
102 5
node.h
in src
74 -
harness.c
in api_test
67 6
cmake
FindAsan.cmake
in root
66 -
in
config.h.in
in src
56 -
buffer.h
in src
55 -
chunk.h
in src
52 7
houdini_href_e.c
in src
51 1
scanners.h
in src
49 -
houdini_html_e.c
in src
42 2
houdini.h
in src
40 -
render.h
in src
39 -
config.h
in src
37 -
parser.h
in src
35 -
cmark.c
in src
34 -
cmark_export.h
in src/include
32 -
references.h
in src
30 -
cmark_ctype.c
in src
28 1
wrapper.py
in wrappers
25 1
harness.h
in api_test
24 -
mkcasefold.pl
in tools
21 -
iterator.h
in src
20 -
utf8.h
in src
19 -
inlines.h
in src
17 -
Package.swift
in root
16 -
appveyor.yml
in root
16 -
Files With Most Units (Top 20)
File# lines# units
node.c
in src
715 37
blocks.c
in src
1003 34
main.c
in api_test
912 30
inlines.c
in src
1083 27
buffer.c
in src
210 21
scanners.c
in src
13715 20
re
scanners.re
in src
108 20
statistics.py
in bench
219 10
utf8.c
in src
268 9
chunk.h
in src
52 7
harness.c
in api_test
67 6
commonmark.c
in src
414 5
iterator.c
in src
102 5
references.c
in src
107 5
render.c
in src
154 5
html.c
in src
297 4
latex.c
in src
403 4
houdini_html_u.c
in src
116 3
main.c
in src
188 3
xml.c
in src
155 3
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 2 long lines.

File# lines# units# long lines
main.c
in api_test
912 30 1
inlines.c
in src
1083 27 1