aws-cloudformation / aws-cloudformation-resource-providers-kendra
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 200 units with 2,257 lines of code in units (58.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (26 lines of code)
    • 7 simple units (233 lines of code)
    • 192 very simple units (1,998 lines of code)
0% | 0% | 1% | 10% | 88%
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
java0% | 0% | 1% | 10% | 88%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-kendra-datasource/src/main/java/software/amazon/kendra/datasource0% | 0% | 5% | 7% | 87%
aws-kendra-index/src/main/java/software/amazon/kendra/index0% | 0% | 0% | 18% | 81%
aws-kendra-faq/src/main/java/software/amazon/kendra/faq0% | 0% | 0% | 13% | 86%
aws-kendra-datasource/src/main/java/software/amazon/kendra/datasource/convert0% | 0% | 0% | 0% | 100%
aws-kendra-datasource/src/main/java/software/amazon/kendra/datasource/convert/confluence0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static DataSourceConfiguration toModelDataSourceConfiguration()
in aws-kendra-datasource/src/main/java/software/amazon/kendra/datasource/Translator.java
26 11 2
static List translateToSdkDocumentMetadataConfigurationList()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/Translator.java
38 9 2
private ProgressEvent updateTags()
in aws-kendra-faq/src/main/java/software/amazon/kendra/faq/UpdateHandler.java
36 8 3
private void verifyNonUpdatableFields()
in aws-kendra-faq/src/main/java/software/amazon/kendra/faq/UpdateHandler.java
22 8 2
private ProgressEvent updateTags()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/UpdateHandler.java
38 8 3
private ProgressEvent updateTags()
in aws-kendra-datasource/src/main/java/software/amazon/kendra/datasource/UpdateHandler.java
36 8 3
static ResourceModel translateFromReadResponse()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/Translator.java
39 7 3
static UpdateIndexRequest translateToUpdateRequest()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/Translator.java
24 6 2
private CreateIndexResponse createIndex()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/CreateHandler.java
18 5 2
private UpdateIndexResponse updateIndex()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/UpdateHandler.java
18 5 2
private UpdateDataSourceResponse updateDataSource()
in aws-kendra-datasource/src/main/java/software/amazon/kendra/datasource/UpdateHandler.java
18 5 2
private CreateFaqResponse createFaq()
in aws-kendra-faq/src/main/java/software/amazon/kendra/faq/CreateHandler.java
16 4 2
private DeleteFaqResponse deleteFaq()
in aws-kendra-faq/src/main/java/software/amazon/kendra/faq/DeleteHandler.java
17 4 2
private UpdateIndexResponse postCreate()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/CreateHandler.java
17 4 2
private DeleteIndexResponse deleteIndex()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/DeleteHandler.java
18 4 3
static List translateToSdkDocumentMetadataConfigurationList()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/Translator.java
18 4 1
private static Relevance translateToSdkRelevance()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/Translator.java
21 4 1
protected ProgressEvent handleRequest()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/ReadHandler.java
29 4 5
private void verifyNonUpdatableFields()
in aws-kendra-index/src/main/java/software/amazon/kendra/index/UpdateHandler.java
11 4 2
private CreateDataSourceResponse createDataSource()
in aws-kendra-datasource/src/main/java/software/amazon/kendra/datasource/CreateHandler.java
17 4 2