Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 12 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | var express = require('express'); |
||
2 | var api = require('./projects'); |
||
3 | var router = express.Router(); |
||
4 | |||
5 | /* GET home page. */ |
||
6 | router.get('/', function (req, res, next) { |
||
|
|||
7 | res.render('index'); |
||
8 | }); |
||
9 | |||
10 | router.get('/api', api.showAllProjects); |
||
11 | |||
12 | module.exports = router; |
||
13 |
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.