controllers/index.js   A
last analyzed

Size

Lines of Code 20

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 5
Bugs 0 Features 0
Metric Value
c 5
b 0
f 0
nc 1
dl 0
loc 20
rs 10
noi 5

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ ??? 0 3 1
1
const BaseController = require('./base')
0 ignored issues
show
Unused Code introduced by
The constant BaseController seems to be never used. Consider removing it.
Loading history...
2
const Customer = require('../models/customer')
3
const Price = require('../models/price')
4
const MessageController = require('./message')
5
const AuthController = require('./auth')
6
7
module.exports.Customer = class CustomerController extends BaseController {
0 ignored issues
show
Bug introduced by
The variable BaseController seems to be never declared. If this is a global, consider adding a /** global: BaseController */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
8
  constructor () {
9
    super(Customer, '_id')
0 ignored issues
show
Bug introduced by
The variable Customer seems to be never declared. If this is a global, consider adding a /** global: Customer */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
10
  }
11
}
12
13
module.exports.Price = class PriceController extends BaseController {
0 ignored issues
show
Bug introduced by
The variable BaseController seems to be never declared. If this is a global, consider adding a /** global: BaseController */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
14
  constructor () {
15
    super(Price, '_id')
0 ignored issues
show
Bug introduced by
The variable Price seems to be never declared. If this is a global, consider adding a /** global: Price */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
16
  }
17
}
18
19
module.exports.Message = MessageController
20
module.exports.Auth = AuthController
21