Function getCommits
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
new Promise((resolve, reject) => {
git(gitDir).log((err, result) => {
if (err) {
reject(err);
return;
Delete ,
Open
: [],
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace ','
with ","
Open
.split(',')
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Delete ,
Open
}),
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'simple-git'
with "simple-git"
Open
const git = require('simple-git');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'bluebird'
with "bluebird"
Open
const Promise = require('bluebird');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'debug',·'Git·Service·initialized.'
with "debug",·"Git·Service·initialized."
Open
log('debug', 'Git Service initialized.');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'tag:·'
with "tag:·"
Open
.filter(s => s.startsWith('tag: '))
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'use·strict'
with "use·strict"
Open
'use strict';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'semver'
with "semver"
Open
const semver = require('semver');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'git'
with "git"
Open
const DEFAULT_NAME = 'git';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'tag:·'
with "tag:·"
Open
.map(s => s.substr('tag: '.length))
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Replace 'ENV',·'log'
with "ENV",·"log"
Open
const DEFAULT_DEPENDENCIES = ['ENV', 'log'];
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/