broadsw0rd/enhanced-log

View on GitHub

Showing 50 of 86 total issues

Function Landing has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Landing(runner) {
  Base.call(this, runner);

  var self = this
    , stats = this.stats
Severity: Minor
Found in libs/mocha.js - About 1 hr to fix

    Function lookupFiles has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.lookupFiles = function lookupFiles(path, extensions, recursive) {
      var files = [];
      var re = new RegExp('\\.(' + extensions.join('|') + ')$');
    
      if (!exists(path)) {
    Severity: Minor
    Found in libs/mocha.js - About 1 hr to fix

      Function list has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      exports.list = function(failures){
        console.log();
        failures.forEach(function(test, i){
          // format
          var fmt = color('error title', '  %s) %s:\n')
      Severity: Minor
      Found in libs/mocha.js - About 1 hr to fix

        Function Doc has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function Doc(runner) {
          Base.call(this, runner);
        
          var self = this
            , stats = this.stats
        Severity: Minor
        Found in libs/mocha.js - About 1 hr to fix

          Function exports has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          module.exports = function(suite){
            var suites = [suite];
          
            suite.on('require', visit);
          
          
          Severity: Minor
          Found in libs/mocha.js - About 1 hr to fix

            Function XUnit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function XUnit(runner, options) {
              Base.call(this, runner);
              var stats = this.stats
                , tests = []
                , self = this;
            Severity: Minor
            Found in libs/mocha.js - About 1 hr to fix

              Function NyanCat has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function NyanCat(runner) {
                Base.call(this, runner);
                var self = this
                  , stats = this.stats
                  , width = Base.window.width * .75 | 0
              Severity: Minor
              Found in libs/mocha.js - About 1 hr to fix

                Function next has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function next(err, errSuite) {
                    // if we bail after first err
                    if (self.failures && suite._bail) return fn();
                
                    if (self._abort) return fn();
                Severity: Minor
                Found in libs/mocha.js - About 1 hr to fix

                  Function runSuite has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Runner.prototype.runSuite = function(suite, fn){
                    var total = this.grepTotal(suite)
                      , self = this
                      , i = 0;
                  
                  
                  Severity: Minor
                  Found in libs/mocha.js - About 1 hr to fix

                    Function TAP has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function TAP(runner) {
                      Base.call(this, runner);
                    
                      var self = this
                        , stats = this.stats
                    Severity: Minor
                    Found in libs/mocha.js - About 1 hr to fix

                      Function visit has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function visit(obj, file) {
                          var suite;
                          for (var key in obj) {
                            if ('function' == typeof obj[key]) {
                              var fn = obj[key];
                      Severity: Minor
                      Found in libs/mocha.js - About 1 hr to fix

                        Function JSONReporter has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function JSONReporter(runner) {
                          var self = this;
                          Base.call(this, runner);
                        
                          var tests = []
                        Severity: Minor
                        Found in libs/mocha.js - About 1 hr to fix

                          Function _box has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function _box(message, symbol, padding){
                                  symbol = symbol || DEFAULT_BOX_SYMBOL
                          
                                  if(typeof symbol == 'object'){
                                      padding = symbol
                          Severity: Minor
                          Found in src/log.js - About 1 hr to fix

                            Function hook has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            Runner.prototype.hook = function(name, fn){
                              var suite = this.suite
                                , hooks = suite['_' + name]
                                , self = this
                                , timer;
                            Severity: Minor
                            Found in libs/mocha.js - About 1 hr to fix

                              Function parse has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function parse(str) {
                                var match = /^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(str);
                                if (!match) return;
                                var n = parseFloat(match[1]);
                                var type = (match[2] || 'ms').toLowerCase();
                              Severity: Minor
                              Found in libs/mocha.js - About 1 hr to fix

                                Function _divider has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _divider(text, symbol, length){
                                        length = length || DEFAULT_DIVIDER_LENGTH
                                        symbol = symbol || DEFAULT_DIVIDER_SYMBOL
                                        if(typeof text == 'number'){
                                            length = text
                                Severity: Minor
                                Found in src/log.js - About 1 hr to fix

                                  Function Dot has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function Dot(runner) {
                                    Base.call(this, runner);
                                  
                                    var self = this
                                      , stats = this.stats
                                  Severity: Minor
                                  Found in libs/mocha.js - About 1 hr to fix

                                    Function List has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function List(runner) {
                                      Base.call(this, runner);
                                    
                                      var self = this
                                        , stats = this.stats
                                    Severity: Minor
                                    Found in libs/mocha.js - About 1 hr to fix

                                      Function draw has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      Progress.prototype.draw = function(ctx){
                                        try {
                                          var percent = Math.min(this.percent, 100)
                                            , size = this._size
                                            , half = size / 2
                                      Severity: Minor
                                      Found in libs/mocha.js - About 1 hr to fix

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

                                        function coverage(filename, data) {
                                          var ret = {
                                            filename: filename,
                                            coverage: 0,
                                            hits: 0,
                                        Severity: Minor
                                        Found in libs/mocha.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language