Skip to content

Latest commit

 

History

History
731 lines (721 loc) · 22.3 KB

EXAMPLE.md

File metadata and controls

731 lines (721 loc) · 22.3 KB

Complexity report, Saturday, December 27, 2014

  • Mean per-function logical LOC: 4.191244239631336
  • Mean per-function parameter count: 2.2211981566820276
  • Mean per-function cyclomatic complexity: 2.1059907834101383
  • Mean per-function Halstead effort: 802.4973507353953
  • Mean per-module maintainability index: 125.24778532321781
  • First-order density: 18.75%
  • Change cost: 43.75%
  • Core size: 25%

/Users/pbooth/code/escomplex/src/index.js

  • Physical LOC: 24
  • Logical LOC: 7
  • Mean parameter count: 3
  • Cyclomatic complexity: 2
  • Cyclomatic complexity density: 28.57142857142857%
  • Maintainability index: 132.31087395723623
  • Dependency count: 3
  • Function: analyse
    • Line No.: 24
    • Physical LOC: 7
    • Logical LOC: 3
    • Parameter count: 3
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 66.66666666666666%
    • Halstead difficulty: 4
    • Halstead volume: 107.31275182609167
    • Halstead effort: 429.2510073043667

/Users/pbooth/code/escomplex/src/module.js

  • Physical LOC: 331
  • Logical LOC: 192
  • Mean parameter count: 2.142857142857143
  • Cyclomatic complexity: 26
  • Cyclomatic complexity density: 13.541666666666666%
  • Maintainability index: 122.31078309873308
  • Dependency count: 1
  • Function: analyse
    • Line No.: 9
    • Physical LOC: 60
    • Logical LOC: 21
    • Parameter count: 3
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 9.523809523809524%
    • Halstead difficulty: 11.66
    • Halstead volume: 454.9534001269235
    • Halstead effort: 5304.756645479928
  • Function: processNode
    • Line No.: 37
    • Physical LOC: 12
    • Logical LOC: 6
    • Parameter count: 2
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 33.33333333333333%
    • Halstead difficulty: 3.5999999999999996
    • Halstead volume: 114.71363126237385
    • Halstead effort: 412.96907254454584
  • Function: createScope
    • Line No.: 50
    • Physical LOC: 8
    • Logical LOC: 4
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 25%
    • Halstead difficulty: 3.4545454545454546
    • Halstead volume: 113.29982727264704
    • Halstead effort: 391.399403305508
  • Function: popScope
    • Line No.: 59
    • Physical LOC: 9
    • Logical LOC: 5
    • Parameter count: 0
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 40%
    • Halstead difficulty: 6
    • Halstead volume: 87.56916320732489
    • Halstead effort: 525.4149792439493
  • Function: getDefaultSettings
    • Line No.: 70
    • Physical LOC: 9
    • Logical LOC: 6
    • Parameter count: 0
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 16.666666666666664%
    • Halstead difficulty: 2.0625
    • Halstead volume: 62.26976913547136
    • Halstead effort: 128.43139884190967
  • Function: createReport
    • Line No.: 80
    • Physical LOC: 7
    • Logical LOC: 4
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 25%
    • Halstead difficulty: 3.4375
    • Halstead volume: 70.30835464468075
    • Halstead effort: 241.68496909109007
  • Function: createFunctionReport
    • Line No.: 88
    • Physical LOC: 18
    • Logical LOC: 11
    • Parameter count: 3
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 18.181818181818183%
    • Halstead difficulty: 10
    • Halstead volume: 307.67071501168664
    • Halstead effort: 3076.7071501168666
  • Function: createInitialHalsteadState
    • Line No.: 107
    • Physical LOC: 6
    • Logical LOC: 3
    • Parameter count: 0
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 33.33333333333333%
    • Halstead difficulty: 2.5
    • Halstead volume: 33
    • Halstead effort: 82.5
  • Function: createInitialHalsteadItemState
    • Line No.: 114
    • Physical LOC: 7
    • Logical LOC: 4
    • Parameter count: 0
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 25%
    • Halstead difficulty: 2.8
    • Halstead volume: 41.20902501875006
    • Halstead effort: 115.38527005250016
  • Function: processLloc
    • Line No.: 122
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 0.75
    • Halstead volume: 28.07354922057604
    • Halstead effort: 21.05516191543203
  • Function: incrementCounter
    • Line No.: 126
    • Physical LOC: 9
    • Logical LOC: 6
    • Parameter count: 5
    • Cyclomatic complexity: 3
    • Cyclomatic complexity density: 50%
    • Halstead difficulty: 7
    • Halstead volume: 132.83428025068963
    • Halstead effort: 929.8399617548274
  • Function: incrementLogicalSloc
    • Line No.: 136
    • Physical LOC: 7
    • Logical LOC: 3
    • Parameter count: 2
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 66.66666666666666%
    • Halstead difficulty: 3
    • Halstead volume: 63.39850002884625
    • Halstead effort: 190.19550008653874
  • Function: processCyclomatic
    • Line No.: 144
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 0.75
    • Halstead volume: 28.07354922057604
    • Halstead effort: 21.05516191543203
  • Function: incrementCyclomatic
    • Line No.: 148
    • Physical LOC: 7
    • Logical LOC: 3
    • Parameter count: 2
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 66.66666666666666%
    • Halstead difficulty: 3
    • Halstead volume: 48
    • Halstead effort: 144
  • Function: processOperators
    • Line No.: 156
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 0.8
    • Halstead volume: 23.264662506490403
    • Halstead effort: 18.611730005192324
  • Function: processOperands
    • Line No.: 160
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 0.8
    • Halstead volume: 23.264662506490403
    • Halstead effort: 18.611730005192324
  • Function: processHalsteadMetric
    • Line No.: 164
    • Physical LOC: 17
    • Logical LOC: 2
    • Parameter count: 4
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 3
    • Halstead volume: 71.69925001442313
    • Halstead effort: 215.0977500432694
  • Function: <anonymous>
    • Line No.: 166
    • Physical LOC: 13
    • Logical LOC: 7
    • Parameter count: 1
    • Cyclomatic complexity: 4
    • Cyclomatic complexity density: 57.14285714285714%
    • Halstead difficulty: 9.454545454545455
    • Halstead volume: 199.6525931318485
    • Halstead effort: 1887.6245168829314
  • Function: halsteadItemEncountered
    • Line No.: 182
    • Physical LOC: 7
    • Logical LOC: 3
    • Parameter count: 3
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 66.66666666666666%
    • Halstead difficulty: 3.25
    • Halstead volume: 53.88872502451932
    • Halstead effort: 175.13835632968778
  • Function: incrementHalsteadItems
    • Line No.: 190
    • Physical LOC: 4
    • Logical LOC: 2
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 50%
    • Halstead difficulty: 1
    • Halstead volume: 31.019550008653873
    • Halstead effort: 31.019550008653873
  • Function: incrementDistinctHalsteadItems
    • Line No.: 195
    • Physical LOC: 9
    • Logical LOC: 6
    • Parameter count: 3
    • Cyclomatic complexity: 3
    • Cyclomatic complexity density: 50%
    • Halstead difficulty: 5
    • Halstead volume: 143.0611994437619
    • Halstead effort: 715.3059972188095
  • Function: isHalsteadMetricDistinct
    • Line No.: 205
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 3.5714285714285716
    • Halstead volume: 64.52932501298082
    • Halstead effort: 230.4618750463601
  • Function: recordDistinctHalsteadMetric
    • Line No.: 209
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 1.5
    • Halstead volume: 42
    • Halstead effort: 63
  • Function: incrementHalsteadMetric
    • Line No.: 213
    • Physical LOC: 5
    • Logical LOC: 2
    • Parameter count: 3
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 2.7
    • Halstead volume: 42
    • Halstead effort: 113.4
  • Function: incrementTotalHalsteadItems
    • Line No.: 219
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 2
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 0.75
    • Halstead volume: 16.253496664211536
    • Halstead effort: 12.190122498158651
  • Function: processDependencies
    • Line No.: 223
    • Physical LOC: 14
    • Logical LOC: 7
    • Parameter count: 3
    • Cyclomatic complexity: 4
    • Cyclomatic complexity density: 57.14285714285714%
    • Halstead difficulty: 7.875
    • Halstead volume: 203.9005206452921
    • Halstead effort: 1605.716600081675
  • Function: calculateMetrics
    • Line No.: 238
    • Physical LOC: 39
    • Logical LOC: 20
    • Parameter count: 1
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 10%
    • Halstead difficulty: 12.037037037037038
    • Halstead volume: 557.4115101222976
    • Halstead effort: 6709.582992212842
  • Function: <anonymous>
    • Line No.: 250
    • Physical LOC: 5
    • Logical LOC: 3
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 33.33333333333333%
    • Halstead difficulty: 1.4285714285714286
    • Halstead volume: 44.37895002019238
    • Halstead effort: 63.39850002884626
  • Function: <anonymous>
    • Line No.: 264
    • Physical LOC: 1
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 1.5
    • Halstead volume: 10
    • Halstead effort: 15
  • Function: <anonymous>
    • Line No.: 273
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 1.5
    • Halstead volume: 25.84962500721156
    • Halstead effort: 38.77443751081734
  • Function: calculateCyclomaticDensity
    • Line No.: 278
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 3
    • Halstead volume: 53.1508495181978
    • Halstead effort: 159.45254855459342
  • Function: calculateHalsteadMetrics
    • Line No.: 282
    • Physical LOC: 15
    • Logical LOC: 10
    • Parameter count: 1
    • Cyclomatic complexity: 3
    • Cyclomatic complexity density: 30%
    • Halstead difficulty: 16.5
    • Halstead volume: 603.5475432598478
    • Halstead effort: 9958.534463787488
  • Function: nilHalsteadMetrics
    • Line No.: 298
    • Physical LOC: 9
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 1.75
    • Halstead volume: 86.37013046707143
    • Halstead effort: 151.147728317375
  • Function: sumMaintainabilityMetrics
    • Line No.: 308
    • Physical LOC: 6
    • Logical LOC: 4
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 25%
    • Halstead difficulty: 2.5
    • Halstead volume: 154.15338753100974
    • Halstead effort: 385.3834688275243
  • Function: calculateMaintainabilityIndex
    • Line No.: 315
    • Physical LOC: 19
    • Logical LOC: 7
    • Parameter count: 4
    • Cyclomatic complexity: 4
    • Cyclomatic complexity density: 57.14285714285714%
    • Halstead difficulty: 12.222222222222223
    • Halstead volume: 349.77463164918527
    • Halstead effort: 4275.023275712265

/Users/pbooth/code/escomplex/src/project.js

  • Physical LOC: 270
  • Logical LOC: 156
  • Mean parameter count: 1.7419354838709677
  • Cyclomatic complexity: 23
  • Cyclomatic complexity density: 14.743589743589745%
  • Maintainability index: 124.0598813563106
  • Dependency count: 4
  • Function: analyse
    • Line No.: 14
    • Physical LOC: 36
    • Logical LOC: 11
    • Parameter count: 3
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 9.090909090909092%
    • Halstead difficulty: 8.4
    • Halstead volume: 206.32331253245206
    • Halstead effort: 1733.1158252725975
  • Function: <anonymous>
    • Line No.: 21
    • Physical LOC: 17
    • Logical LOC: 9
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 11.11111111111111%
    • Halstead difficulty: 7.733333333333333
    • Halstead volume: 226.17809780285066
    • Halstead effort: 1749.1106230087119
  • Function: createAdjacencyMatrix
    • Line No.: 51
    • Physical LOC: 18
    • Logical LOC: 5
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 20%
    • Halstead difficulty: 5.5
    • Halstead volume: 166.7970000576925
    • Halstead effort: 917.3835003173086
  • Function: <anonymous>
    • Line No.: 56
    • Physical LOC: 9
    • Logical LOC: 2
    • Parameter count: 2
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 50%
    • Halstead difficulty: 3.333333333333333
    • Halstead volume: 79.95445336320968
    • Halstead effort: 266.51484454403226
  • Function: <anonymous>
    • Line No.: 58
    • Physical LOC: 6
    • Logical LOC: 3
    • Parameter count: 2
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 66.66666666666666%
    • Halstead difficulty: 5.333333333333333
    • Halstead volume: 101.57915548582149
    • Halstead effort: 541.7554959243812
  • Function: <anonymous>
    • Line No.: 54
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 2
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 2.625
    • Halstead volume: 30.880904142633646
    • Halstead effort: 81.06237337441333
  • Function: comparePaths
    • Line No.: 70
    • Physical LOC: 13
    • Logical LOC: 7
    • Parameter count: 2
    • Cyclomatic complexity: 5
    • Cyclomatic complexity density: 71.42857142857143%
    • Halstead difficulty: 21
    • Halstead volume: 303.2413500673362
    • Halstead effort: 6368.06835141406
  • Function: getAdjacencyMatrixValue
    • Line No.: 84
    • Physical LOC: 11
    • Logical LOC: 5
    • Parameter count: 3
    • Cyclomatic complexity: 3
    • Cyclomatic complexity density: 60%
    • Halstead difficulty: 5.416666666666666
    • Halstead volume: 76.10749561002055
    • Halstead effort: 412.2489345542779
  • Function: doesDependencyExist
    • Line No.: 96
    • Physical LOC: 9
    • Logical LOC: 1
    • Parameter count: 2
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 2.3333333333333335
    • Halstead volume: 39.863137138648355
    • Halstead effort: 93.01398665684617
  • Function: <anonymous>
    • Line No.: 97
    • Physical LOC: 7
    • Logical LOC: 3
    • Parameter count: 2
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 66.66666666666666%
    • Halstead difficulty: 3.4375
    • Halstead volume: 66.60791492653966
    • Halstead effort: 228.9647075599801
  • Function: checkDependency
    • Line No.: 106
    • Physical LOC: 11
    • Logical LOC: 5
    • Parameter count: 3
    • Cyclomatic complexity: 3
    • Cyclomatic complexity density: 60%
    • Halstead difficulty: 3.4285714285714284
    • Halstead volume: 83.04820237218406
    • Halstead effort: 284.7366938474882
  • Function: isCommonJSDependency
    • Line No.: 118
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 2
    • Halstead volume: 18.094737505048094
    • Halstead effort: 36.18947501009619
  • Function: isInternalCommonJSDependency
    • Line No.: 122
    • Physical LOC: 10
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 200%
    • Halstead difficulty: 6.7857142857142865
    • Halstead volume: 132.6436125266828
    • Halstead effort: 900.081656431062
  • Function: isDependency
    • Line No.: 133
    • Physical LOC: 9
    • Logical LOC: 4
    • Parameter count: 3
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 50%
    • Halstead difficulty: 9.333333333333334
    • Halstead volume: 151.23612512626258
    • Halstead effort: 1411.5371678451174
  • Function: percentifyDensity
    • Line No.: 143
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 2
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 4
    • Halstead volume: 39
    • Halstead effort: 156
  • Function: percentify
    • Line No.: 147
    • Physical LOC: 7
    • Logical LOC: 3
    • Parameter count: 2
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 66.66666666666666%
    • Halstead difficulty: 5
    • Halstead volume: 44.37895002019238
    • Halstead effort: 221.8947501009619
  • Function: createVisibilityMatrix
    • Line No.: 155
    • Physical LOC: 29
    • Logical LOC: 9
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 11.11111111111111%
    • Halstead difficulty: 6.8181818181818175
    • Halstead volume: 212
    • Halstead effort: 1445.4545454545453
  • Function: <anonymous>
    • Line No.: 158
    • Physical LOC: 4
    • Logical LOC: 2
    • Parameter count: 0
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 50%
    • Halstead difficulty: 2.357142857142857
    • Halstead volume: 59.794705707972525
    • Halstead effort: 140.94466345450667
  • Function: <anonymous>
    • Line No.: 163
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 2
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 1.5
    • Halstead volume: 23.264662506490403
    • Halstead effort: 34.89699375973561
  • Function: <anonymous>
    • Line No.: 167
    • Physical LOC: 13
    • Logical LOC: 1
    • Parameter count: 2
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 2.5
    • Halstead volume: 27
    • Halstead effort: 67.5
  • Function: <anonymous>
    • Line No.: 168
    • Physical LOC: 11
    • Logical LOC: 5
    • Parameter count: 2
    • Cyclomatic complexity: 3
    • Cyclomatic complexity density: 60%
    • Halstead difficulty: 4.166666666666667
    • Halstead volume: 58.81033751683406
    • Halstead effort: 245.0430729868086
  • Function: setCoreSize
    • Line No.: 185
    • Physical LOC: 38
    • Logical LOC: 16
    • Parameter count: 1
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 12.5%
    • Halstead difficulty: 16.666666666666668
    • Halstead volume: 422.59091326949994
    • Halstead effort: 7043.181887825
  • Function: <anonymous>
    • Line No.: 198
    • Physical LOC: 11
    • Logical LOC: 1
    • Parameter count: 2
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 2.6666666666666665
    • Halstead volume: 43.18506523353572
    • Halstead effort: 115.16017395609524
  • Function: <anonymous>
    • Line No.: 199
    • Physical LOC: 9
    • Logical LOC: 5
    • Parameter count: 3
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 40%
    • Halstead difficulty: 8.666666666666666
    • Halstead volume: 83.76180828526728
    • Halstead effort: 725.9356718056497
  • Function: <anonymous>
    • Line No.: 215
    • Physical LOC: 5
    • Logical LOC: 2
    • Parameter count: 2
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 4.285714285714286
    • Halstead volume: 75.28421251514429
    • Halstead effort: 322.6466250649041
  • Function: getMedian
    • Line No.: 224
    • Physical LOC: 9
    • Logical LOC: 4
    • Parameter count: 1
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 50%
    • Halstead difficulty: 10.0625
    • Halstead volume: 171.90318620677482
    • Halstead effort: 1729.7758112056715
  • Function: compareNumbers
    • Line No.: 234
    • Physical LOC: 11
    • Logical LOC: 5
    • Parameter count: 2
    • Cyclomatic complexity: 3
    • Cyclomatic complexity density: 60%
    • Halstead difficulty: 5.625
    • Halstead volume: 53.88872502451932
    • Halstead effort: 303.12407826292116
  • Function: calculateAverages
    • Line No.: 246
    • Physical LOC: 27
    • Logical LOC: 14
    • Parameter count: 1
    • Cyclomatic complexity: 2
    • Cyclomatic complexity density: 14.285714285714285%
    • Halstead difficulty: 10.625
    • Halstead volume: 282.02638308846554
    • Halstead effort: 2996.5303203149465
  • Function: <anonymous>
    • Line No.: 263
    • Physical LOC: 5
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 1.5
    • Halstead volume: 34.86917501586544
    • Halstead effort: 52.303762523798156
  • Function: <anonymous>
    • Line No.: 264
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 1.6666666666666667
    • Halstead volume: 18.575424759098897
    • Halstead effort: 30.95904126516483
  • Function: <anonymous>
    • Line No.: 269
    • Physical LOC: 3
    • Logical LOC: 1
    • Parameter count: 1
    • Cyclomatic complexity: 1
    • Cyclomatic complexity density: 100%
    • Halstead difficulty: 2.25
    • Halstead volume: 28.07354922057604
    • Halstead effort: 63.16548574629609

/Users/pbooth/code/escomplex/src/safeName.js

  • Physical LOC: 15
  • Logical LOC: 8
  • Mean parameter count: 2
  • Cyclomatic complexity: 3
  • Cyclomatic complexity density: 37.5%
  • Maintainability index: 122.30960288059134
  • Dependency count: 1
  • Function: module.exports
    • Line No.: 7
    • Physical LOC: 11
    • Logical LOC: 5
    • Parameter count: 2
    • Cyclomatic complexity: 3
    • Cyclomatic complexity density: 60%
    • Halstead difficulty: 6.666666666666666
    • Halstead volume: 103.78294855911894
    • Halstead effort: 691.8863237274595