apple / ccs-pycalendar
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 1,104 units with 7,885 lines of code in units (80.5% of code).
    • 0 very complex units (0 lines of code)
    • 9 complex units (533 lines of code)
    • 57 medium complex units (1,809 lines of code)
    • 104 simple units (1,632 lines of code)
    • 934 very simple units (3,911 lines of code)
0% | 6% | 22% | 20% | 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
py0% | 6% | 22% | 20% | 49%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/pycalendar/icalendar0% | 9% | 25% | 21% | 43%
src/pycalendar0% | 3% | 16% | 21% | 58%
src/zonal0% | 8% | 31% | 19% | 40%
src/pycalendar/vcard0% | 0% | 32% | 8% | 58%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def parse()
in src/pycalendar/icalendar/recurrence.py
97 38 2
def complexExpand()
in src/pycalendar/icalendar/recurrence.py
49 37 6
def parse()
in src/pycalendar/duration.py
57 32 2
def parseComponent()
in src/pycalendar/icalendar/calendar.py
51 32 2
def generate()
in src/pycalendar/icalendar/recurrence.py
86 31 2
def vtimezone()
in src/zonal/rule.py
84 31 8
def parse()
in src/pycalendar/containerbase.py
50 30 2
def generateYearlySet()
in src/pycalendar/icalendar/recurrence.py
29 30 3
def isAdvancedRule()
in src/pycalendar/icalendar/recurrence.py
30 29 1
def expandPeriod()
in src/pycalendar/icalendar/componentrecur.py
52 24 3
def generateMonthlySet()
in src/pycalendar/icalendar/recurrence.py
23 24 3
def generateSecondlySet()
in src/pycalendar/icalendar/recurrence.py
33 24 3
def generateMinutelySet()
in src/pycalendar/icalendar/recurrence.py
31 23 3
def generateHourlySet()
in src/pycalendar/icalendar/recurrence.py
29 22 3
def parseMultipleTextData()
in src/pycalendar/vcard/card.py
39 22 2
def parseTextParameters()
in src/pycalendar/vcard/property.py
41 22 3
def generateDailySet()
in src/pycalendar/icalendar/recurrence.py
27 21 3
def expand()
in src/pycalendar/icalendar/recurrenceset.py
39 21 6
def decodeTextValue()
in src/pycalendar/utils.py
45 20 1
def getMonthTable()
in src/pycalendar/utils.py
42 20 5