src/router/passwords/index.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 12
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 12
rs 10
bpm 1.5
cpm 1.5
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ ??? 0 8 1
1
'use strict'
2
3
import fs from 'fs'
4
5
export default function (server) {
6
  fs.readdirSync(__dirname).forEach((file) => {
7
    if (file.indexOf('index') === -1) {
8
      const router = require(`./${file}`)
9
      router.default(server)
10
    }
11
  })
12
}
13