aws-robotics / utils-common
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 32 units with 456 lines of code in units (47.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (65 lines of code)
    • 1 medium complex units (47 lines of code)
    • 4 simple units (119 lines of code)
    • 26 very simple units (225 lines of code)
0% | 14% | 10% | 26% | 49%
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
cpp0% | 15% | 11% | 28% | 45%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws_common/src/sdk_utils/auth0% | 27% | 19% | 18% | 34%
aws_common/src/sdk_utils0% | 0% | 0% | 41% | 58%
aws_common/src/sdk_utils/logging0% | 0% | 0% | 48% | 51%
aws_common/include/aws_common/sdk_utils0% | 0% | 0% | 0% | 100%
aws_common/src/fs_utils0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void IotRoleCredentialsProvider::Refresh()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
65 26 0
bool GetServiceAuthConfig()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
47 11 2
ClientConfiguration ClientConfigurationProvider::GetClientConfiguration()
in aws_common/src/sdk_utils/client_configuration_provider.cpp
47 9 1
static bool IsIotConfigValid()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
6 8 1
bool IotRoleCredentialsProvider::ValidateResponse()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
38 8 1
void AWSLogSystem::LogMessage()
in aws_common/src/sdk_utils/logging/aws_log_system.cpp
28 8 3
static bool GetConfigValue()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
14 5 4
int wordexp_ros()
in aws_common/src/fs_utils/wordexp_ros.cpp
12 4 3
std::string ParameterPath::get_node_path()
in aws_common/src/sdk_utils/parameter_path.cpp
11 4 1
std::string ParameterPath::get_local_path()
in aws_common/src/sdk_utils/parameter_path.cpp
11 4 1
T MakeCall()
in aws_common/include/aws_common/sdk_utils/throttling_manager.h
28 4 4
const Profile AWSProfileProvider::GetProfile()
in aws_common/src/sdk_utils/aws_profile_provider.cpp
12 3 0
std::string ParameterPath::get_resolved_path()
in aws_common/src/sdk_utils/parameter_path.cpp
10 2 2
void ClientConfigurationProvider::PopulateUserAgent()
in aws_common/src/sdk_utils/client_configuration_provider.cpp
11 2 2
static bool SetCurlOpt()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
9 2 3
static bool AppendHeader()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
12 2 3
static bool ParseConfigValue()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
9 2 2
static size_t WriteData()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
13 2 4
AWSCredentials IotRoleCredentialsProvider::GetAWSCredentials()
in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp
8 2 0
void AWSLogSystem::Log()
in aws_common/src/sdk_utils/logging/aws_log_system.cpp
14 2 4