Passed
Push — master ( 55414e...5f39f4 )
by Björn
03:25
created

T_VAR   A

Complexity

Total Complexity 3
Complexity/F 3

Size

Lines of Code 1
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 0
wmc 3
c 1
b 1
f 1
nc 4
mnd 1
bc 1
fnc 1
dl 0
loc 1
ccs 1
cts 1
cp 1
crap 0
rs 10
bpm 1
cpm 3
noi 1
1 1
var childProcess = require('child_process');
2
3 1
module.exports = {
4
5
  log: function(filepath, pretty, callback) {
0 ignored issues
show
Unused Code introduced by
The parameter callback 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...
6 6
	  var dateformat = 'short';
7
	  
8
	  // git log --date=format:"%d/%m/%Y" --pretty=format:"## %cd%n- %an <%ae>: %s (%H)" src/partials/atoms/link/index.html
9 6
	  var cmd = 'git log' + 
10
          (' --date='+dateformat) + 
11
          (pretty ? ' --pretty='+pretty : '') + 
12
	      (filepath ? ' '+filepath : '');
13
	  
14 6
	  return childProcess.execSync(cmd);
15
  }
16
17
};
18