dart-lang / dart_ci
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 323 units with 4,487 lines of code in units (51.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (117 lines of code)
    • 8 medium complex units (475 lines of code)
    • 36 simple units (1,041 lines of code)
    • 278 very simple units (2,854 lines of code)
0% | 2% | 10% | 23% | 63%
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% | 2% | 10% | 22% | 63%
py0% | 0% | 0% | 79% | 20%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
github-label-notifier/symbolizer0% | 8% | 15% | 33% | 42%
github-label-notifier/functions0% | 0% | 35% | 0% | 64%
current_results/lib0% | 0% | 30% | 21% | 48%
builder/lib0% | 0% | 5% | 22% | 71%
appengine/lib0% | 0% | 77% | 0% | 22%
results_feed/lib0% | 0% | 0% | 18% | 81%
current_results_ui/lib0% | 0% | 0% | 20% | 79%
baseline/lib0% | 0% | 0% | 45% | 55%
ROOT0% | 0% | 0% | 79% | 20%
github-label-notifier/ui0% | 0% | 0% | 0% | 100%
results_feed/web0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void processLines()
in github-label-notifier/symbolizer/lib/parser.dart
117 28 0
static BotCommand parseCommand()
in github-label-notifier/symbolizer/lib/bot.dart
75 18 2
void postResultComment()
in github-label-notifier/symbolizer/lib/bot.dart
84 15 4
Future _symbolizeCrash()
in github-label-notifier/symbolizer/lib/symbolizer.dart
53 15 3
Future _getNewCommits()
in builder/lib/src/commits_cache.dart
57 13 0
Future onIssueOpened()
in github-label-notifier/functions/node/index.dart
91 13 1
static List _mergeIfNeeded()
in current_results/lib/src/slice.dart
33 12 2
List getSortedResults()
in current_results/lib/src/slice.dart
35 12 5
Future getLog()
in appengine/lib/src/get_log.dart
47 11 4
Future _symbolizeIosFrames()
in github-label-notifier/symbolizer/lib/symbolizer.dart
57 10 5
Future _symbolizeCustomFrames()
in github-label-notifier/symbolizer/lib/symbolizer.dart
60 10 5
bool eventMatchesState()
in results_feed/lib/src/components/results_selector_panel.dart
10 10 1
Future _fetchByHash()
in builder/lib/src/commits_cache.dart
25 9 1
Future storeChange()
in builder/lib/src/builder.dart
43 9 1
void parseAsIosBacktrace()
in github-label-notifier/symbolizer/lib/parser.dart
27 9 0
Future executeCommand()
in github-label-notifier/symbolizer/lib/bot.dart
42 8 5
Future symbolizeGiven()
in github-label-notifier/symbolizer/lib/bot.dart
35 8 5
Future update()
in results_feed/lib/src/components/try_results_component.dart
25 8 0
Future fetchEarlierCommits()
in results_feed/lib/src/components/app_component.dart
28 8 1
Future saveComment()
in results_feed/lib/src/services/firestore_service.dart
19 8 7