dart-lang / dart-docker
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 11 units with 92 lines of code in units (52.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (21 lines of code)
    • 2 small units (27 lines of code)
    • 8 very small units (44 lines of code)
0% | 0% | 22% | 29% | 47%
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% | 22% | 29% | 47%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts/lib/src0% | 0% | 22% | 29% | 47%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
String buildDockerfile()
in scripts/lib/src/dockerfile.dart
21 3 2
String buildLibrary()
in scripts/lib/src/library.dart
16 2 3
void writeVersionsFile()
in scripts/lib/src/versions.dart
11 2 2
Future update()
in scripts/lib/src/versions.dart
9 2 0
Future read()
in scripts/lib/src/http.dart
8 1 2
Map versionsFromJson()
in scripts/lib/src/versions.dart
6 1 2
Future verify()
in scripts/lib/src/versions.dart
6 2 0
Map versionsFromFile()
in scripts/lib/src/versions.dart
5 1 2
Future _readLatestVersion()
in scripts/lib/src/versions.dart
5 1 0
String toString()
in scripts/lib/src/versions.dart
3 1 0
String _imageData()
in scripts/lib/src/library.dart
2 1 2