whatsapp / erlfmt
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 12 files with 4,184 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,357 lines of code)
    • 4 medium size files (1,572 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 5 very small files (255 lines of code)
0% | 56% | 37% | 0% | 6%
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
erl0% | 47% | 50% | 0% | 1%
yrl0% | 100% | 0% | 0% | 0%
py0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
hrl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 59% | 39% | 0% | 1%
doc/FormattingDecisionComments0% | 0% | 0% | 0% | 100%
Longest Files (Top 12)
File# lines# units
874 -
822 -
661 -
496 -
453 -
321 -
302 -
types.py
in doc/FormattingDecisionComments
77 3
columns.html
in doc/FormattingDecisionComments
66 -
columns.py
in doc/FormattingDecisionComments
47 1
44 -
21 -
Files With Most Units (Top 2)
File# lines# units
types.py
in doc/FormattingDecisionComments
77 3
columns.py
in doc/FormattingDecisionComments
47 1
Files With Long Lines (Top 3)

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

File# lines# units# long lines
columns.html
in doc/FormattingDecisionComments
66 - 4
496 - 2
453 - 1
Correlations

File Size vs. Commits (all time): 12 points

src/erlfmt.erl x: 80 commits (all time) y: 661 lines of code src/erlfmt_parse.yrl x: 64 commits (all time) y: 874 lines of code src/erlfmt_cli.erl x: 27 commits (all time) y: 453 lines of code src/erlfmt_format.erl x: 143 commits (all time) y: 822 lines of code src/erlfmt_recomment.erl x: 36 commits (all time) y: 302 lines of code src/erlfmt_scan.erl x: 52 commits (all time) y: 321 lines of code src/erlfmt_algebra.erl x: 26 commits (all time) y: 496 lines of code doc/FormattingDecisionComments/columns.py x: 2 commits (all time) y: 47 lines of code doc/FormattingDecisionComments/types.py x: 2 commits (all time) y: 77 lines of code doc/FormattingDecisionComments/columns.html x: 1 commits (all time) y: 66 lines of code src/rebar3_fmt_prv.erl x: 9 commits (all time) y: 44 lines of code src/erlfmt_scan.hrl x: 1 commits (all time) y: 21 lines of code
874.0
lines of code
  min: 21.0
  average: 348.67
  25th percentile: 51.75
  median: 311.5
  75th percentile: 619.75
  max: 874.0
0 143.0
commits (all time)
min: 1.0 | average: 36.92 | 25th percentile: 2.0 | median: 26.5 | 75th percentile: 61.0 | max: 143.0

File Size vs. Contributors (all time): 12 points

src/erlfmt.erl x: 10 contributors (all time) y: 661 lines of code src/erlfmt_parse.yrl x: 5 contributors (all time) y: 874 lines of code src/erlfmt_cli.erl x: 6 contributors (all time) y: 453 lines of code src/erlfmt_format.erl x: 3 contributors (all time) y: 822 lines of code src/erlfmt_recomment.erl x: 3 contributors (all time) y: 302 lines of code src/erlfmt_scan.erl x: 7 contributors (all time) y: 321 lines of code src/erlfmt_algebra.erl x: 3 contributors (all time) y: 496 lines of code doc/FormattingDecisionComments/columns.py x: 1 contributors (all time) y: 47 lines of code doc/FormattingDecisionComments/types.py x: 1 contributors (all time) y: 77 lines of code doc/FormattingDecisionComments/columns.html x: 1 contributors (all time) y: 66 lines of code src/rebar3_fmt_prv.erl x: 3 contributors (all time) y: 44 lines of code src/erlfmt_scan.hrl x: 1 contributors (all time) y: 21 lines of code
874.0
lines of code
  min: 21.0
  average: 348.67
  25th percentile: 51.75
  median: 311.5
  75th percentile: 619.75
  max: 874.0
0 10.0
contributors (all time)
min: 1.0 | average: 3.67 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 5.75 | max: 10.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 1 points

src/erlfmt.erl x: 1 commits (90d) y: 661 lines of code
661.0
lines of code
  min: 661.0
  average: 661.0
  25th percentile: 661.0
  median: 661.0
  75th percentile: 661.0
  max: 661.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (90 days): 1 points

src/erlfmt.erl x: 1 contributors (90d) y: 661 lines of code
661.0
lines of code
  min: 661.0
  average: 661.0
  25th percentile: 661.0
  median: 661.0
  75th percentile: 661.0
  max: 661.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0