broadsw0rd/enhanced-log

View on GitHub

Showing 50 of 86 total issues

Function Mocha has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Mocha(options) {
  options = options || {};
  this.files = [];
  this.options = options;
  this.grep(options.grep);
Severity: Minor
Found in libs/mocha.js - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                  if (lines.length <= 4) {
                    eofNL(ret, i, current);
                  }
    Severity: Major
    Found in libs/mocha.js - About 45 mins to fix

      Function createPatch has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          createPatch: function(fileName, oldStr, newStr, oldHeader, newHeader) {
      Severity: Minor
      Found in libs/mocha.js - About 35 mins to fix

        Avoid too many return statements within this function.
        Open

                      return basePath.components;
        Severity: Major
        Found in libs/mocha.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              if (!match) return next();
          Severity: Major
          Found in libs/mocha.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              return emptyRepresentation(value, type);
            Severity: Major
            Found in libs/mocha.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  else return indent + line;
              Severity: Major
              Found in libs/mocha.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  return ms + 'ms';
                Severity: Major
                Found in libs/mocha.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return next();
                  Severity: Major
                  Found in libs/mocha.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return matched.length == 0 && (!global.navigator || 'onerror' !== key);
                    Severity: Major
                    Found in libs/mocha.js - About 30 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language