ericduran/chromeHAR

View on GitHub

Showing 371 of 463 total issues

Avoid deeply nested control flow statements.
Open

          } else if (value == "{") {
            // Parses a JSON object, returning a new JavaScript object.
            results = {};
            for (;; hasMembers || (hasMembers = true)) {
              value = lex();
Severity: Major
Found in bower_components/json3/lib/json3.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                if (!(isFunction && property == "prototype") && !isProperty.call(members, property) && (members[property] = 1) && isProperty.call(object, property)) {
                  callback(property);
                }
    Severity: Major
    Found in bower_components/json3/lib/json3.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                  for (index = 0, length = value.length; index < length; hasMembers || (hasMembers = true), index++) {
                    element = serialize(index, value, callback, properties, whitespace, indentation, stack);
                    results.push(element === undef ? "null" : element);
                  }
      Severity: Major
      Found in bower_components/json3/lib/json3.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                  } else if (getClass.call(width) == stringClass) {
                    whitespace = width.length <= 10 ? width : width.slice(0, 10);
                  }
        Severity: Major
        Found in bower_components/json3/lib/json3.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                    } else if (typeof value.toJSON == "function" && ((className != numberClass && className != stringClass && className != arrayClass) || isProperty.call(value, "toJSON"))) {
                      // Prototype <= 1.6.1 adds non-standard `toJSON` methods to the
                      // `Number`, `String`, `Date`, and `Array` prototypes. JSON 3
                      // ignores all `toJSON` methods on these objects unless they are
                      // defined directly on an instance.
          Severity: Major
          Found in bower_components/json3/lib/json3.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                          if (parseSupported) {
                            try {
                              // Safari <= 5.1.2 and FF 3.1b1 allow unescaped tabs in strings.
                              parseSupported = !parse('"\t"');
                            } catch (exception) {}
            Severity: Major
            Found in bower_components/json3/lib/json3.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          if (value > -1 / 0 && value < 1 / 0) {
                            // Dates are serialized according to the `Date#toJSON` method
                            // specified in ES 5.1 section 15.9.5.44. See section 15.9.1.15
                            // for the ISO 8601 date time string format.
                            if (getDay) {
              Severity: Major
              Found in bower_components/json3/lib/json3.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            if ((width -= width % 1) > 0) {
                              for (whitespace = "", width > 10 && (width = 10); whitespace.length < width; whitespace += " ");
                            }
                Severity: Major
                Found in bower_components/json3/lib/json3.js - About 45 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                        if (next && last && next.$$route === last.$$route
                            && equals(next.pathParams, last.pathParams) && !next.reloadOnSearch && !forceReload) {
                          last.params = next.params;
                          copy(last.params, $routeParams);
                          $rootScope.$broadcast('$routeUpdate', last);
                  Severity: Major
                  Found in bower_components/angular/angular.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                                      if (watch && (value = watch.get(current)) !== (last = watch.last) &&
                                          !(watch.eq
                                              ? equals(value, last)
                                              : (typeof value == 'number' && typeof last == 'number'
                                                 && isNaN(value) && isNaN(last)))) {
                    Severity: Major
                    Found in bower_components/angular/angular.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                            if (!hasDirectives.hasOwnProperty(name)) {
                              hasDirectives[name] = [];
                              $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',
                                function($injector, $exceptionHandler) {
                                  var directives = [];
                      Severity: Major
                      Found in bower_components/angular/angular.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                          if (typeof obj.hasOwnProperty != 'function' &&
                              typeof obj.constructor != 'function') {
                            // This is here for IE8: it is a bogus object treat it as array;
                            return true;
                          } else  {
                        Severity: Major
                        Found in bower_components/angular/angular.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                              if ( support.matchesSelector && documentIsHTML &&
                                  ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                  ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                          
                                  try {
                          Severity: Major
                          Found in bower_components/jquery/jquery.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                        if ( matcher[ expando ] ) {
                                            // Find the next relative operator (if any) for proper handling
                                            j = ++i;
                                            for ( ; j < len; j++ ) {
                                                if ( Expr.relative[ tokens[j].type ] ) {
                            Severity: Major
                            Found in bower_components/jquery/jquery.js - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if ( s.crossDomain == null ) {
                                          parts = rurl.exec( s.url.toLowerCase() );
                                          s.crossDomain = !!( parts &&
                                              ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                                                  ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
                              Severity: Major
                              Found in bower_components/jquery/jquery.js - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                                        if (!(charCode >= 48 && charCode <= 57 || charCode >= 97 && charCode <= 102 || charCode >= 65 && charCode <= 70)) {
                                                          // Invalid Unicode escape sequence.
                                                          abort();
                                                        }
                                Severity: Major
                                Found in bower_components/json3/lib/json3.js - About 40 mins to fix

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

                                  function cspSafeGetterFn(key0, key1, key2, key3, key4) {
                                  Severity: Minor
                                  Found in bower_components/angular/angular.js - About 35 mins to fix

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

                                        function($scope, $exceptionHandler, $attr, $element, $parse) {
                                    Severity: Minor
                                    Found in bower_components/angular/angular.js - About 35 mins to fix

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

                                      String.format = function(format, substitutions, formatters, initialValue, append)
                                      Severity: Minor
                                      Found in js/libs/devTools.js - About 35 mins to fix

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

                                              function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
                                        Severity: Minor
                                        Found in bower_components/angular/angular.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language