opensearch-project / opensearch-build
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 380 units with 2,663 lines of code in units (47.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (44 lines of code)
    • 10 simple units (240 lines of code)
    • 369 very simple units (2,379 lines of code)
0% | 0% | 1% | 9% | 89%
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
py0% | 0% | 2% | 6% | 90%
groovy0% | 0% | 0% | 21% | 78%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/manifests_workflow0% | 0% | 17% | 0% | 82%
vars0% | 0% | 0% | 21% | 78%
src0% | 0% | 0% | 44% | 55%
src/ci_workflow0% | 0% | 0% | 18% | 81%
src/system0% | 0% | 0% | 12% | 87%
src/manifests0% | 0% | 0% | 4% | 95%
src/build_workflow0% | 0% | 0% | 0% | 100%
src/assemble_workflow0% | 0% | 0% | 0% | 100%
deployment/lib0% | 0% | 0% | 0% | 100%
src/sign_workflow0% | 0% | 0% | 0% | 100%
src/paths0% | 0% | 0% | 0% | 100%
src/git0% | 0% | 0% | 0% | 100%
src/checkout_workflow0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def update()
in src/manifests_workflow/input_manifests.py
44 12 4
def __flattenDict()
in src/ci_workflow/ci_check_package.py
21 10 5
def main()
in src/run_build.py
42 8 0
def __get_dependencies()
in src/ci_workflow/ci_check_gradle_dependencies.py
28 7 1
void call()
in vars/promoteArtifacts.groovy
65 7 1
def __matches__()
in src/manifests/component_manifest.py
5 6 3
def __matches__()
in src/manifests/input_manifest.py
5 6 3
def compact()
in src/manifests/manifest.py
12 6 2
def main()
in src/run_manifests.py
11 6 0
def terminate()
in src/system/process.py
25 6 1
Closure call()
in vars/createSha512Checksums.groovy
26 6 0
def __sign__()
in src/sign_workflow/sign_artifacts.py
9 5 1
def check()
in src/build_workflow/opensearch_dashboards/build_artifact_check_plugin.py
19 5 2
void call()
in vars/buildManifest.groovy
10 5 1
def from_version()
in src/manifests/manifest.py
9 4 2
def export_artifacts()
in src/build_workflow/builder_from_dist.py
17 4 2
def check()
in src/build_workflow/opensearch/build_artifact_check_plugin.py
14 4 2
def check()
in src/build_workflow/opensearch/build_artifact_check_maven.py
28 4 2
def export_artifacts()
in src/build_workflow/builder_from_source.py
8 4 2
def __get_min_dist()
in src/assemble_workflow/bundle.py
12 4 2