lib/index.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 24
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 3
c 1
b 0
f 0
nc 1
mnd 1
bc 3
fnc 2
dl 0
loc 24
rs 10
bpm 1.5
cpm 1.5
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A Object.forEach 0 8 2
1
var Manager = require('./Manager').Manager
2
var defaultManager = new Manager()
3
4
/**
5
 * @type {IStubManager}
6
 */
7
var exported = {
8
  Stubs: require('./Stub'),
9
  Manager: Manager,
10
  defaultManager: defaultManager
11
}
12
Object.keys(defaultManager).forEach(function (name) {
13
  var property = defaultManager[name]
14
  if (typeof property === 'function') {
15
    exported[name] = function () {
16
      defaultManager[name].apply(defaultManager, arguments)
17
    }
18
  }
19
})
20
21
/**
22
 * @type {IStubManager}
23
 */
24
module.exports = exported
25