microsoft / elfie-arriba
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 3,525 units with 43,950 lines of code in units (64.2% of code).
    • 0 very complex units (0 lines of code)
    • 8 complex units (651 lines of code)
    • 197 medium complex units (10,305 lines of code)
    • 285 simple units (7,797 lines of code)
    • 3,035 very simple units (25,197 lines of code)
0% | 1% | 23% | 17% | 57%
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
cs0% | 1% | 22% | 17% | 57%
cpp0% | 0% | 54% | 26% | 19%
js0% | 0% | 0% | 10% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Arriba/Arriba0% | 3% | 18% | 25% | 52%
Elfie/Xsv0% | 13% | 8% | 22% | 56%
XForm/XForm0% | <1% | 38% | 10% | 49%
Elfie/Elfie0% | <1% | 10% | 16% | 72%
XForm/XForm.Native0% | 0% | 58% | 27% | 13%
Arriba/Tools0% | 0% | 18% | 29% | 51%
Arriba/Arriba.Client0% | 0% | 12% | 3% | 84%
Arriba/Arriba.Communication0% | 0% | 6% | 22% | 71%
Elfie/Elfie.Indexer0% | 0% | 7% | 34% | 58%
XForm/XForm.Generator0% | 0% | 16% | 25% | 58%
XForm/XForm.Prices0% | 0% | 58% | 0% | 41%
Elfie/Elfie.Merger0% | 0% | 40% | 0% | 59%
Arriba/Arriba.ClientExample0% | 0% | 24% | 0% | 75%
Elfie/SymbolSourceGet0% | 0% | 42% | 31% | 25%
Elfie/Elfie.Search0% | 0% | 7% | 25% | 66%
Arriba/Arriba.ConsoleTest0% | 0% | 10% | 6% | 82%
Elfie/Elfie.EndToEnd0% | 0% | 0% | 19% | 80%
Arriba/Arriba.Server0% | 0% | 0% | 22% | 77%
Arriba/Arriba.Query0% | 0% | 0% | 84% | 15%
Arriba/Arriba.Web0% | 0% | 0% | 10% | 89%
XForm/XForm.Scanning0% | 0% | 0% | 0% | 100%
Elfie/SourceIndex0% | 0% | 0% | 0% | 100%
XForm/XForm.IIS0% | 0% | 0% | 0% | 100%
Elfie/SymbolForge0% | 0% | 0% | 0% | 100%
Arriba/Arriba.Native0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public bool TryConvert()
in Arriba/Arriba/Structures/Value.cs
171 46 2
Copy the input to the output()
in Elfie/Xsv/Program.cs
149 40 1
public NegatedTryConvert TryGetNegatedTryConvert()
in XForm/XForm/Types/String8TypeProvider.cs
76 30 3
public static Type GetTypeFromTypeString()
in Arriba/Arriba/Model/Column/ColumnFactory.cs
48 27 1
public static object GetDefaultValueFromTypeString()
in Arriba/Arriba/Model/Column/ColumnFactory.cs
48 27 1
public Type BestType()
in Arriba/Arriba/Structures/Value.cs
40 27 1
public bool TryToTimeSpan()
in Elfie/Elfie/Model/Strings/String8.cs
50 27 1
public TermExpression()
in XForm/XForm/Query/Expression/TermExpression.cs
69 27 4
private static void AddSuggestionsForValue()
in Arriba/Arriba/Model/Query/QueryIntelliSense.cs
50 25 6
private object TryAsNumber()
in Arriba/Arriba/Structures/Value.cs
100 23 0
public void Crawl()
in Arriba/Tools/Arriba.TfsWorkItemCrawler/DefaultCrawler.cs
126 23 2
private IExpression ParseTerm()
in Arriba/Arriba/Model/Query/QueryParser.cs
88 22 2
public bool TryFindMembers()
in Elfie/Elfie/Model/MemberQuery.cs
59 22 2
public IXTable Build()
in XForm/XForm/WorkflowRunner.cs
71 22 3
protected void ApplyTableSecurity()
in Arriba/Arriba.Client/Model/SecureDatabase.cs
91 21 3
public static bool TryBuild()
in Arriba/Arriba/Model/Expressions/RangeToScan.cs
87 21 5
public IntelliSenseResult GetIntelliSenseItems()
in Arriba/Arriba/Model/Query/QueryIntelliSense.cs
64 21 2
public void AddColumnsFromBlock()
in Arriba/Arriba/Model/Table.cs
53 20 1
private bool AddUniqueMembers()
in Elfie/Elfie/Model/MergedMembersDatabase.cs
100 20 5
public XArray Divide()
in XForm/XForm/Types/Computers/LongComputer.cs
62 20 2