dart-lang / boolean_selector
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 32 units with 189 lines of code in units (35.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (25 lines of code)
    • 31 very simple units (164 lines of code)
0% | 0% | 0% | 13% | 86%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
dart0% | 0% | 0% | 13% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src0% | 0% | 0% | 13% | 86%
example0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
Token _readNext()
in lib/src/scanner.dart
25 10 0
String toString()
in lib/src/ast.dart
6 5 0
String toString()
in lib/src/ast.dart
6 5 0
Node _simpleExpression()
in lib/src/parser.dart
19 5 0
bool _multiLineComment()
in lib/src/scanner.dart
7 4 0
FileSpan? _expandSafe()
in lib/src/ast.dart
5 4 2
BooleanSelector intersection()
in lib/src/impl.dart
7 4 1
BooleanSelector union()
in lib/src/impl.dart
7 4 1
void _consumeWhitespace()
in lib/src/scanner.dart
5 3 0
String toString()
in lib/src/ast.dart
6 3 0
Node _conditional()
in lib/src/parser.dart
10 3 0
bool scan()
in lib/src/scanner.dart
5 2 1
Node parse()
in lib/src/parser.dart
8 2 0
Node _or()
in lib/src/parser.dart
5 2 0
Node _and()
in lib/src/parser.dart
5 2 0
void visitVariable()
in lib/src/validator.dart
4 2 1
void validate()
in lib/src/all.dart
1 1 1
Token next()
in lib/src/scanner.dart
6 1 0
Token _scanOperator()
in lib/src/scanner.dart
5 1 1
Token _scanOr()
in lib/src/scanner.dart
5 1 0