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