dart-lang / boolean_selector
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 32 units with 189 lines of code in units (35.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (25 lines of code)
    • 1 small units (19 lines of code)
    • 30 very small units (145 lines of code)
0% | 0% | 13% | 10% | 76%
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% | 13% | 10% | 76%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 0% | 13% | 10% | 76%
example0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
Token _readNext()
in lib/src/scanner.dart
25 10 0
Node _simpleExpression()
in lib/src/parser.dart
19 5 0
Node _conditional()
in lib/src/parser.dart
10 3 0
Node parse()
in lib/src/parser.dart
8 2 0
bool _multiLineComment()
in lib/src/scanner.dart
7 4 0
BooleanSelector intersection()
in lib/src/impl.dart
7 4 1
BooleanSelector union()
in lib/src/impl.dart
7 4 1
Token next()
in lib/src/scanner.dart
6 1 0
String toString()
in lib/src/ast.dart
6 5 0
String toString()
in lib/src/ast.dart
6 5 0
String toString()
in lib/src/ast.dart
6 3 0
bool scan()
in lib/src/scanner.dart
5 2 1
Token _scanOperator()
in lib/src/scanner.dart
5 1 1
Token _scanOr()
in lib/src/scanner.dart
5 1 0
Token _scanAnd()
in lib/src/scanner.dart
5 1 0
void _consumeWhitespace()
in lib/src/scanner.dart
5 3 0
FileSpan? _expandSafe()
in lib/src/ast.dart
5 4 2
void visitConditional()
in lib/src/visitor.dart
5 1 1
Node _or()
in lib/src/parser.dart
5 2 0
Node _and()
in lib/src/parser.dart
5 2 0