Completed
Push — master ( 7ee597...82641a )
by greg
01:56
created

test/fixtures/scripts/test-script/routes/get/test.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 8
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A test.js ➔ route 0 4 1
1
'use strict';
2
3
var route = function route(req, res, next, abe) {
0 ignored issues
show
Unused Code introduced by
The parameter abe 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...
Unused Code introduced by
The parameter next 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...
Comprehensibility Naming Best Practice introduced by
The variable route already seems to be declared on line 3. Consider using another variable name or omitting the var keyword.

This check looks for variables that are declared in multiple lines. There may be several reasons for this.

In the simplest case the variable name was reused by mistake. This may lead to very hard to locate bugs.

If you want to reuse a variable for another purpose, consider declaring it at or near the top of your function and just assigning to it subsequently so it is always declared.

Loading history...
4
  res.set('Content-Type', 'text/html');
5
  return res.send('test');
6
}
7
8
exports.default = route