dart-lang / glob
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 40 units with 550 lines of code in units (60.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 7 medium size units (260 lines of code)
    • 13 small units (175 lines of code)
    • 20 very small units (115 lines of code)
0% | 0% | 47% | 31% | 20%
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% | 47% | 31% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 0% | 52% | 32% | 15%
lib0% | 0% | 0% | 29% | 70%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
Stream list()
in lib/src/list_tree.dart
49 10 3
List split()
in lib/src/ast.dart
46 13 1
Iterable listSync()
in lib/src/list_tree.dart
45 9 3
static void _addGlob()
in lib/src/list_tree.dart
35 9 3
AstNode? _parseRange()
in lib/src/parser.dart
34 10 0
OptionsNode flattenOptions()
in lib/src/ast.dart
30 6 0
String _toRegExp()
in lib/src/ast.dart
21 7 0
factory ListTree()
in lib/src/list_tree.dart
20 5 2
Match? matchAsPrefix()
in lib/glob.dart
17 8 2
17 5 3
AstNode _parseLiteral()
in lib/src/parser.dart
16 7 1
String _toRegExp()
in lib/src/ast.dart
13 3 0
Stream list()
in lib/src/list_tree.dart
13 4 2
13 4 3
OptionsNode flattenOptions()
in lib/src/ast.dart
11 3 0
String toString()
in lib/src/ast.dart
11 3 0
List listSync()
in lib/src/list_tree.dart
11 3 2
SequenceNode _parseSequence()
in lib/src/parser.dart
11 6 1
AstNode _parseNode()
in lib/src/parser.dart
11 5 1
AstNode? _parseOptions()
in lib/src/parser.dart
11 5 0