Passed
Push — master ( cc9df7...a66138 )
by Björn
02:29
created

lib/util/git.js (1 issue)

Severity
1 1
var childProcess = require('child_process');
2
3 1
module.exports = {
4
5
  log: function(filepath, pretty, callback) {
0 ignored issues
show
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 = 'format:"%d/%m/%Y"';
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