nfroidure/cloud-pages

View on GitHub
src/git.js

Summary

Maintainability
A
1 hr
Test Coverage

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;
Severity: Minor
Found in src/git.js - About 1 hr to fix

    Delete ,
    Open

                          : [],
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace ',' with ","
    Open

                              .split(',')
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Delete ,
    Open

            }),
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace 'simple-git' with "simple-git"
    Open

    const git = require('simple-git');
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace 'bluebird' with "bluebird"
    Open

    const Promise = require('bluebird');
    Severity: Minor
    Found in src/git.js by eslint

    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.');
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace 'tag:·' with "tag:·"
    Open

                              .filter(s => s.startsWith('tag: '))
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace 'use·strict' with "use·strict"
    Open

    'use strict';
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace 'semver' with "semver"
    Open

    const semver = require('semver');
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace 'git' with "git"
    Open

    const DEFAULT_NAME = 'git';
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace 'tag:·' with "tag:·"
    Open

                              .map(s => s.substr('tag: '.length))
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Replace 'ENV',·'log' with "ENV",·"log"
    Open

    const DEFAULT_DEPENDENCIES = ['ENV', 'log'];
    Severity: Minor
    Found in src/git.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status