bazelbuild / rules_kotlin
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 102 units with 1,102 lines of code in units (12.4% 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)
    • 2 simple units (138 lines of code)
    • 100 very simple units (964 lines of code)
0% | 0% | 0% | 12% | 87%
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
kt0% | 0% | 0% | 12% | 87%
py0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/main/kotlin/io0% | 0% | 0% | 12% | 87%
kotlin/internal/js0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
fun execute()
in src/main/kotlin/io/bazel/kotlin/builder/tasks/jvm/KotlinJvmTaskExecutor.kt
89 10 2
fun merge()
in src/main/kotlin/io/bazel/kotlin/builder/tasks/jvm/JdepsMerger.kt
49 6 5
def _extract_root_entry()
in kotlin/internal/js/importer.py
17 5 4
fun generateJDeps()
in src/main/kotlin/io/bazel/kotlin/builder/tasks/jvm/JDepsGenerator.kt
34 5 1
fun getClassCanonicalPath()
in src/main/kotlin/io/bazel/kotlin/plugin/jdeps/JdepsGenExtension.kt
20 4 1
fun executeCompilerTask()
in src/main/kotlin/io/bazel/kotlin/builder/toolchain/CompilationTaskContext.kt
23 4 3
fun addEntry()
in src/main/kotlin/io/bazel/kotlin/builder/utils/jars/JarCreator.kt
15 4 2
fun resolveVerified()
in src/main/kotlin/io/bazel/kotlin/builder/utils/BazelUtils.kt
28 4 1
override fun maybePerformGc()
in src/main/kotlin/io/bazel/worker/CpuTimeBasedGcScheduler.kt
12 4 0
fun printLines()
in src/main/kotlin/io/bazel/kotlin/builder/toolchain/CompilationTaskContext.kt
15 3 4
protected fun extract()
in src/main/kotlin/io/bazel/kotlin/builder/utils/jars/JarExtractor.kt
22 3 1
override fun preWrite()
in src/main/kotlin/io/bazel/kotlin/builder/utils/jars/SourceJarExtractor.kt
10 3 2
fun execute()
in src/main/kotlin/io/bazel/kotlin/builder/utils/jars/SourceJarExtractor.kt
16 3 0
fun addDirectory()
in src/main/kotlin/io/bazel/kotlin/builder/utils/jars/JarCreator.kt
16 3 1
fun pathSuffixMatchingPredicate()
in src/main/kotlin/io/bazel/kotlin/builder/tasks/jvm/JdepsParser.kt
11 3 2
fun build()
in src/main/kotlin/io/bazel/kotlin/builder/tasks/KotlinBuilder.kt
27 3 2
def _is_jar()
in kotlin/internal/js/importer.py
5 2 1
def _main()
in kotlin/internal/js/importer.py
5 2 1
fun whenTracing()
in src/main/kotlin/io/bazel/kotlin/builder/toolchain/CompilationTaskContext.kt
5 2 1
fun execute()
in src/main/kotlin/io/bazel/kotlin/builder/toolchain/CompilationTaskContext.kt
5 2 1