angular / angular-cn
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 258 units with 3,219 lines of code in units (28.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 9 medium complex units (373 lines of code)
    • 31 simple units (838 lines of code)
    • 218 very simple units (2,008 lines of code)
0% | 0% | 11% | 26% | 62%
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
js0% | 0% | 11% | 26% | 62%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tools/api-builder0% | 0% | 17% | 36% | 46%
tools/plunker-builder0% | 0% | 33% | 10% | 55%
public/resources0% | 0% | 15% | 11% | 73%
tools/doc-shredder0% | 0% | 9% | 26% | 63%
ROOT0% | 0% | 0% | 29% | 70%
public/translate0% | 0% | 0% | 38% | 61%
tools/fs-utils0% | 0% | 0% | 34% | 65%
tools/example-zipper0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
compile: function()
in public/resources/js/directives/live-example.js
47 24 2
_createPostData()
in tools/plunker-builder/builder.js
52 15 1
function getLinkInfoImpl()
in tools/api-builder/links-package/services/getLinkInfo.js
44 15 3
$ctrl.filterSections = function()
in public/resources/js/directives/api-list.js
19 13 1
handler: function()
in tools/api-builder/links-package/inline-tag-defs/linkDocs.js
39 13 3
function buildRegionDocs()
in tools/doc-shredder/regionExtractor.js
59 12 2
process: function()
in tools/api-builder/angular.io-package/rendering/indentForMarkdown.js
38 12 2
_initConfigAndCollectFileNames()
in tools/plunker-builder/builder.js
50 11 1
function parseSyntax()
in tools/api-builder/cheatsheet-package/services/cheatsheetItemParser.js
25 11 1
function getCommentInfo()
in tools/doc-shredder/regionExtractor.js
43 10 1
_buildPlunkerFrom()
in tools/plunker-builder/builder.js
33 10 1
handler: function()
in tools/api-builder/links-package/inline-tag-defs/exampleTabs.js
24 10 3
40 9 0
30 9 1
exec()
in gulpfile.js
22 9 5
function getMakeDecoratorCall()
in tools/api-builder/docs-package/processors/mergeDecoratorDocs.js
14 9 2
36 8 0
16 8 1
$process: function()
in tools/doc-shredder/processors/shredMapProcessor.js
73 8 1
handler: function()
in tools/api-builder/links-package/inline-tag-defs/example.js
16 8 3