aws-samples / amazon-deequ-glue
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 58 units with 1,039 lines of code in units (34.5% 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)
    • 5 simple units (318 lines of code)
    • 53 very simple units (721 lines of code)
0% | 0% | 0% | 30% | 69%
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
scala0% | 0% | 0% | 30% | 69%
js0% | 0% | 0% | 30% | 69%
py0% | 0% | 0% | 33% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/main/scala/deequ0% | 0% | 0% | 30% | 69%
src/deequ-constraints/src/components0% | 0% | 0% | 75% | 24%
src/deequ-constraints/src0% | 0% | 0% | 27% | 72%
src/main/utils/deequ-controller0% | 0% | 0% | 46% | 53%
src/deequ-constraints/src/graphql0% | 0% | 0% | 0% | 100%
src/main/utils/crawl-data/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function registerValidSW()
in src/deequ-constraints/src/serviceWorker.js
33 8 2
def main()
in src/main/scala/deequ/deequ-analysis-verification-runner.scala
46 8 1
def testGlueJob()
in src/main/utils/deequ-controller/deequ-controller.py
14 7 4
export default()
in src/deequ-constraints/src/components/Suggestions.js
113 6 0
def main()
in src/main/scala/deequ/deequ-suggestion-analysis-verification-runner.scala
112 6 1
export function register()
in src/deequ-constraints/src/serviceWorker.js
22 5 1
function checkValidServiceWorker()
in src/deequ-constraints/src/serviceWorker.js
25 4 2
function App()
in src/deequ-constraints/src/App.js
30 3 0
def writeSuggestionsToDynamo()
in src/main/scala/deequ/deequ-suggestion-runner.scala
25 3 2
def extractValue:()
in src/main/scala/deequ/deequ-suggestion-runner.scala
8 3 1
def main()
in src/main/scala/deequ/deequ-profile-runner.scala
33 3 1
def extractValue:()
in src/main/scala/deequ/deequ-analysis-runner.scala
8 3 1
def get_table_suffix()
in src/main/utils/deequ-controller/deequ-controller.py
10 3 1
def lambda_handler()
in src/main/utils/crawl-data/src/lambda_function.py
12 3 2
export function unregister()
in src/deequ-constraints/src/serviceWorker.js
11 2 0
async function createDataQualitySuggestion()
in src/deequ-constraints/src/components/Suggestions.js
11 2 0
async function createDataQualityAnalyzer()
in src/deequ-constraints/src/components/Analyzers.js
11 2 0
def readGlueTablesFromDynamoDB()
in src/main/scala/deequ/deequ-suggestion-runner.scala
18 2 1
def processSuggestions()
in src/main/scala/deequ/deequ-suggestion-runner.scala
27 2 3
def extractSuggestionsFromDynamo()
in src/main/scala/deequ/deequ-analysis-verification-runner.scala
17 2 3