aws / cta
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 767 units with 10,538 lines of code in units (64.9% of code).
    • 1 very complex units (258 lines of code)
    • 3 complex units (556 lines of code)
    • 11 medium complex units (754 lines of code)
    • 41 simple units (1,305 lines of code)
    • 711 very simple units (7,665 lines of code)
2% | 5% | 7% | 12% | 72%
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
cs2% | 5% | 7% | 12% | 72%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/CTA.Rules.Analysis50% | 0% | 25% | 0% | 24%
src/CTA.Rules.RuleFiles0% | 61% | 10% | 0% | 27%
src/CTA.Rules.Actions0% | 0% | 7% | 13% | 78%
src/CTA.FeatureDetection.Common0% | 0% | 19% | 20% | 59%
src/CTA.Rules.Models0% | 0% | 15% | 8% | 75%
src/CTA.Rules.PortCore0% | 0% | 6% | 38% | 54%
src/CTA.WebForms0% | 0% | 1% | 5% | 92%
src/CTA.Rules.Update0% | 0% | 4% | 25% | 70%
src/CTA.FeatureDetection.Load0% | 0% | 0% | 22% | 77%
src/CTA.Rules.ProjectFile0% | 0% | 0% | 28% | 71%
src/CTA.Rules.Metrics0% | 0% | 0% | 4% | 95%
src/CTA.FeatureDetection.ProjectType0% | 0% | 0% | 0% | 100%
src/CTA.Rules.Config0% | 0% | 0% | 0% | 100%
src/CTA.FeatureDetection0% | 0% | 0% | 0% | 100%
src/CTA.Rules.Common0% | 0% | 0% | 0% | 100%
src/CTA.FeatureDetection.AuthType0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private bool AnalyzeChildren()
in src/CTA.Rules.Analysis/RulesAnalysis.cs
258 55 5
private void ProcessObject()
in src/CTA.Rules.RuleFiles/RulesFileParser.cs
105 44 1
private void ProcessObject()
in src/CTA.Rules.RuleFiles/RulesFileParser.cs
136 41 1
private void ParseActions()
in src/CTA.Rules.RuleFiles/RulesFileParser.cs
315 37 2
public ActionsLoader()
in src/CTA.Rules.Actions/ActionsLoader.cs
147 21 1
public static void CodeBasedCheck()
in src/CTA.FeatureDetection.Common/WCFConfigUtils/WCFBindingAndTransportUtil.cs
81 16 2
public string ReplaceStartupFile()
in src/CTA.Rules.PortCore/ProjectSpecificPort/WCF/WCFServicePort.cs
64 15 1
private void AddActions()
in src/CTA.Rules.Analysis/RulesAnalysis.cs
130 14 4
public RootNodes Load()
in src/CTA.Rules.RuleFiles/RulesFileLoader.cs
61 14 0
public override string ToString()
in src/CTA.Rules.Models/ProjectActions.cs
59 13 0
public string ToSummaryString()
in src/CTA.Rules.Models/ProjectActions.cs
59 13 0
public List ValidateActions()
in src/CTA.Rules.Update/CodeReplacer.cs
36 13 2
public void Run()
in src/CTA.Rules.RuleFiles/RulesFileExport.cs
33 13 0
public ClassConverter Build()
in src/CTA.WebForms/Factories/ClassConverterFactory.cs
41 12 3
public static Tuple GetServiceInterfaceAndClass()
in src/CTA.FeatureDetection.Common/WCFConfigUtils/WCFBindingAndTransportUtil.cs
43 11 1
public FileConverter Build()
in src/CTA.WebForms/Factories/FileConverterFactory.cs
45 10 1
public static void ConfigBasedCheck()
in src/CTA.FeatureDetection.Common/WCFConfigUtils/WCFBindingAndTransportUtil.cs
21 9 2
public Func GetArchiveFilesAction()
in src/CTA.Rules.Actions/ProjectLevelActions.cs
37 9 1
private void RunWCFChanges()
in src/CTA.Rules.PortCore/ProjectSpecificPort/ProjectRewriters/WCFProjectRewriter.cs
55 9 0
internal ProjectType GetProjectType()
in src/CTA.Rules.PortCore/SolutionPort.cs
39 9 1