dart-lang / homebrew-dart
Unit Size

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

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 45 units with 264 lines of code in units (30.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (22 lines of code)
    • 3 small units (37 lines of code)
    • 41 very small units (205 lines of code)
0% | 0% | 8% | 14% | 77%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 0% | 37% | 62% | 0%
rb0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 0% | 61% | 38% | 0%
lib0% | 0% | 0% | 100% | 0%
Formula0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
String updateFormula()
in lib/src/formula.dart
22 3 4
Future _getHash256()
in lib/src/impl.dart
14 1 3
Future writeHomebrewInfo()
in lib/update_homebrew.dart
12 2 4
Future runGit()
in lib/update_homebrew.dart
11 2 4
install
in Formula/dart@2.10.rb
5 1 0
shim_script
in Formula/dart@2.10.rb
5 1 1
caveats
in Formula/dart@2.10.rb
5 1 0
install
in Formula/dart@2.13.rb
5 1 0
caveats
in Formula/dart@2.13.rb
5 1 0
install
in Formula/dart@2.7.rb
5 1 0
shim_script
in Formula/dart@2.7.rb
5 1 1
caveats
in Formula/dart@2.7.rb
5 1 0
install
in Formula/dart@2.3.rb
5 1 0
shim_script
in Formula/dart@2.3.rb
5 1 1
caveats
in Formula/dart@2.3.rb
5 1 0
install
in Formula/dart@2.2.rb
5 1 0
shim_script
in Formula/dart@2.2.rb
5 1 1
caveats
in Formula/dart@2.2.rb
5 1 0
install
in Formula/dart-beta.rb
5 1 0
caveats
in Formula/dart-beta.rb
5 1 0