dart-lang / package-bots
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 57 units with 414 lines of code in units (86.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (84 lines of code)
    • 10 small units (146 lines of code)
    • 44 very small units (184 lines of code)
0% | 0% | 20% | 35% | 44%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 20% | 35% | 44%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 20% | 35% | 44%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def RunPackageTesting()
in annotated_steps.py
39 6 3
def RunDefaultScript()
in annotated_steps.py
23 4 3
def RunTestRunner()
in annotated_steps.py
22 8 3
def GetSDK()
in annotated_steps.py
20 4 1
def _CheckPubCacheCorruption()
in annotated_steps.py
19 5 2
def RunPubBuild()
in annotated_steps.py
16 5 4
def _TestPackageConfig()
in config_parser.py
15 6 2
def GetBotInfo()
in annotated_steps.py
14 3 0
def RunCustomScript()
in annotated_steps.py
14 3 1
def RunProcess()
in annotated_steps.py
13 4 3
def main()
in annotated_steps.py
13 2 0
def _TestDictOfStrings()
in config_parser.py
11 5 2
def FixupTestControllerJS()
in annotated_steps.py
11 2 1
def GetPackageCopy()
in annotated_steps.py
9 1 1
def _TestListOfStrings()
in config_parser.py
8 4 2
def _validate_config_file()
in config_parser.py
8 5 1
def GetBuildRoot()
in annotated_steps.py
8 3 1
def FillMagicMarkers()
in annotated_steps.py
8 2 2
def SafeDelete()
in annotated_steps.py
7 3 2
def _RunPubCacheRepair()
in annotated_steps.py
7 1 2