ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

Avoid deeply nested control flow statements.
Open

                    if (keyName) locals[keyName] = key;
Severity: Major
Found in bower_components/angular/angular.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                        if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
                                            return false;
                                        }
    Severity: Major
    Found in bower_components/jquery/jquery.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ( typeof elem.getElementsByTagName !== "undefined" ) {
                              // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
                              jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
      
                              // Splice the scripts into ret after their former ancestor and advance our index beyond them
      Severity: Major
      Found in bower_components/jquery/jquery-migrate.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if ( !(unmatched[i] || setMatched[i]) ) {
                                        setMatched[i] = pop.call( results );
                                    }
        Severity: Major
        Found in bower_components/jquery/jquery.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  for ( match in context ) {
                                      // Properties of context are called as methods if possible
                                      if ( jQuery.isFunction( this[ match ] ) ) {
                                          this[ match ]( context[ match ] );
          
          
          Severity: Major
          Found in bower_components/jquery/jquery.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if ( cache[1] === true ) {
                                            return true;
                                        }
            Severity: Major
            Found in bower_components/jquery/jquery.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if ( Expr.relative[ tokens[j].type ] ) {
                                      break;
                                  }
              Severity: Major
              Found in bower_components/jquery/jquery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                } else if ( copy !== undefined ) {
                                    target[ name ] = copy;
                                }
                Severity: Major
                Found in bower_components/jquery/jquery.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if ( copyIsArray ) {
                                          copyIsArray = false;
                                          clone = src && jQuery.isArray(src) ? src : [];
                  
                                      } else {
                  Severity: Major
                  Found in bower_components/jquery/jquery.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        if(start == this.length) { // tiny optimisation #1
                                            this.push.apply(this, args);
                                            return [];
                                        }
                    Severity: Major
                    Found in bower_components/es5-shim/es5-shim.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                  for (length = value.length; length--;) {
                                    update(value, length, callback);
                                  }
                      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

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

                            Avoid deeply nested control flow statements.
                            Open

                                          if (charCode < 32) {
                                            result += unicodePrefix + toPaddedString(2, charCode.toString(16));
                                            break;
                                          }
                            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

                                          } 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

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                          if ( match ) {
                                            html = html.substring( match[0].length );
                                            match[0].replace( END_TAG_REGEXP, parseEndTag );
                                            chars = false;
                                          }
                                  Severity: Minor
                                  Found in bower_components/angular-sanitize/angular-sanitize.js and 1 other location - About 45 mins to fix
                                  bower_components/angular-sanitize/angular-sanitize.js on lines 247..251

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 50.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Avoid deeply nested control flow statements.
                                  Open

                                                if (source.charCodeAt(Index) == 34) {
                                                  // Advance to the next character and return the revived string.
                                                  Index++;
                                                  return value;
                                                }
                                  Severity: Major
                                  Found in bower_components/json3/lib/json3.js - About 45 mins to fix

                                    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

                                                } 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
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language