ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

Avoid deeply nested control flow statements.
Open

            for (var index = 0, length = filter.length, value; index < length; value = filter[index++], ((getClass.call(value) == stringClass || getClass.call(value) == numberClass) && (properties[value] = 1)));
Severity: Major
Found in bower_components/json3/lib/json3.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                  if (charCode >= 48 && charCode <= 57) {
                    // Leading zeroes are interpreted as octal literals.
                    if (charCode == 48 && ((charCode = source.charCodeAt(Index + 1)), charCode >= 48 && charCode <= 57)) {
                      // Illegal octal literal.
                      abort();
    Severity: Major
    Found in bower_components/json3/lib/json3.js - About 45 mins to fix

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

              var self = splitString && _toString(this) == "[object String]" ?
                      this.split("") :
                      toObject(this),
                  length = self.length >>> 0;
      Severity: Minor
      Found in bower_components/es5-shim/es5-shim.js and 1 other location - About 45 mins to fix
      bower_components/es5-shim/es5-shim.js on lines 564..567

      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 (isSigned) {
                      abort();
                    }
      Severity: Major
      Found in bower_components/json3/lib/json3.js - About 45 mins to fix

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

                var self = splitString && _toString(this) == "[object String]" ?
                        this.split("") :
                        toObject(this),
                    length = self.length >>> 0;
        Severity: Minor
        Found in bower_components/es5-shim/es5-shim.js and 1 other location - About 45 mins to fix
        bower_components/es5-shim/es5-shim.js on lines 594..597

        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 (stack[length] === value) {
                      // Cyclic structures cannot be serialized by `JSON.stringify`.
                      throw TypeError();
                    }
        Severity: Major
        Found in bower_components/json3/lib/json3.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                        if (element !== undef) {
                          // According to ES 5.1 section 15.12.3: "If `gap` {whitespace}
                          // is not the empty string, let `member` {quote(property) + ":"}
                          // be the concatenation of `member` and the `space` character."
                          // The "`space` character" refers to the literal space
          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( START_TAG_REGEXP, parseStartTag );
                      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 237..241

            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 (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 ((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

                Avoid deeply nested control flow statements.
                Open

                              if (charCode == 45) {
                                isSigned = true;
                                charCode = source.charCodeAt(++Index);
                              }
                Severity: Major
                Found in bower_components/json3/lib/json3.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                              for (;; hasMembers || (hasMembers = true)) {
                                value = lex();
                                // A closing square bracket marks the end of the array literal.
                                if (value == "]") {
                                  break;
                  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

                                    for (value = "@", Index++; Index < length;) {
                                      charCode = source.charCodeAt(Index);
                                      if (charCode < 32) {
                                        // Unescaped ASCII control characters (those with a code unit
                                        // less than the space character) are not permitted.
                      Severity: Major
                      Found in bower_components/json3/lib/json3.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                      if (source.slice(Index, Index + 4) == "true") {
                                        Index += 4;
                                        return true;
                                      } else if (source.slice(Index, Index + 5) == "false") {
                                        Index += 5;
                        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

                                          cur = elem.nodeType === 1 && ( elem.className ?
                                              ( " " + elem.className + " " ).replace( rclass, " " ) :
                                              " "
                                          );
                          Severity: Minor
                          Found in bower_components/jquery/jquery.js and 1 other location - About 40 mins to fix
                          bower_components/jquery/jquery.js on lines 3880..3883

                          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 49.

                          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

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

                                          cur = elem.nodeType === 1 && ( elem.className ?
                                              ( " " + elem.className + " " ).replace( rclass, " " ) :
                                              ""
                                          );
                          Severity: Minor
                          Found in bower_components/jquery/jquery.js and 1 other location - About 40 mins to fix
                          bower_components/jquery/jquery.js on lines 3842..3845

                          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 49.

                          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

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

                                    },{ //Currency Pattern
                                      minInt: 1,
                                      minFrac: 2,
                                      maxFrac: 2,
                                      posPre: '\u00A4',
                          Severity: Minor
                          Found in bower_components/angular/angular.js and 1 other location - About 40 mins to fix
                          bower_components/angular/angular.js on lines 9569..9579

                          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 49.

                          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

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

                                    { // Decimal Pattern
                                      minInt: 1,
                                      minFrac: 0,
                                      maxFrac: 3,
                                      posPre: '',
                          Severity: Minor
                          Found in bower_components/angular/angular.js and 1 other location - About 40 mins to fix
                          bower_components/angular/angular.js on lines 9579..9589

                          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 49.

                          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

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