app/services/catering/viewer.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 11
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 1
eloc 7
c 1
b 0
f 0
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 11
rs 10
bpm 1
cpm 1
noi 4

1 Function

Rating   Name   Duplication   Size   Complexity  
A module.exports.list 0 4 1
1
const ApiError = require('../../util/api_error')
0 ignored issues
show
Unused Code introduced by
The constant ApiError seems to be never used. Consider removing it.
Loading history...
2
const Validate = require('request-validate')
0 ignored issues
show
Unused Code introduced by
The constant Validate seems to be never used. Consider removing it.
Loading history...
3
const _ = require('underscore')
0 ignored issues
show
Unused Code introduced by
The constant _ seems to be never used. Consider removing it.
Loading history...
4
5
module.exports = {
6
    list: async function (kid) {
0 ignored issues
show
Unused Code introduced by
The parameter kid is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
7
        let result = []
8
        return result
9
    },
10
11
}
12