ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

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

  function has(name) {
    if (name == "bug-string-char-index") {
      // IE <= 7 doesn't support accessing string characters using square
      // bracket notation. IE 8 only supports this for primitives.
      return "a"[0] != "a";
Severity: Major
Found in bower_components/json3/lib/json3.js - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                    if (
                        hour < (
                            minute > 0 || second > 0 || millisecond > 0 ?
                            24 : 25
                        ) &&
    Severity: Critical
    Found in bower_components/es5-shim/es5-shim.js - About 2 hrs to fix

      File es5-sham.js has 277 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // Copyright 2009-2012 by contributors, MIT License
      // vim: ts=4 sts=4 sw=4 expandtab
      
      // Module systems magic dance
      (function (definition) {
      Severity: Minor
      Found in bower_components/es5-shim/es5-sham.js - About 2 hrs to fix

        Function ngModule has 66 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function ngModule($provide) {
              $provide.provider('$compile', $CompileProvider).
                directive({
                    a: htmlAnchorDirective,
                    input: inputDirective,
        Severity: Major
        Found in bower_components/angular/angular.js - About 2 hrs to fix

          Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
              if ( postFilter && !postFilter[ expando ] ) {
                  postFilter = setMatcher( postFilter );
              }
              if ( postFinder && !postFinder[ expando ] ) {
          Severity: Major
          Found in bower_components/jquery/jquery.js - About 2 hrs to fix

            Function createInternalInjector has 64 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function createInternalInjector(cache, factory) {
            
                function getService(serviceName) {
                  if (typeof serviceName !== 'string') {
                    throw Error('Service name expected');
            Severity: Major
            Found in bower_components/angular/angular.js - About 2 hrs to fix

              Function updateRoute has 64 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function updateRoute() {
                    var next = parseRoute(),
                        last = $route.current;
              
                    if (next && last && next.$$route === last.$$route
              Severity: Major
              Found in bower_components/angular/angular.js - About 2 hrs to fix

                Function superMatcher has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        superMatcher = function( seed, context, xml, results, expandContext ) {
                            var elem, j, matcher,
                                setMatched = [],
                                matchedCount = 0,
                                i = "0",
                Severity: Major
                Found in bower_components/jquery/jquery.js - About 2 hrs to fix

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

                      if (pathVal && pathVal.then) {
                        if (!("$$v" in pathVal)) {
                          promise = pathVal;
                          promise.$$v = undefined;
                          promise.then(function(val) { promise.$$v = val; });
                  Severity: Major
                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                  bower_components/angular/angular.js on lines 6632..6639
                  bower_components/angular/angular.js on lines 6643..6650
                  bower_components/angular/angular.js on lines 6654..6661
                  bower_components/angular/angular.js on lines 6665..6672

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

                  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 5 locations. Consider refactoring.
                  Open

                      if (pathVal && pathVal.then) {
                        if (!("$$v" in pathVal)) {
                          promise = pathVal;
                          promise.$$v = undefined;
                          promise.then(function(val) { promise.$$v = val; });
                  Severity: Major
                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                  bower_components/angular/angular.js on lines 6621..6628
                  bower_components/angular/angular.js on lines 6643..6650
                  bower_components/angular/angular.js on lines 6654..6661
                  bower_components/angular/angular.js on lines 6665..6672

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

                  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 5 locations. Consider refactoring.
                  Open

                      if (pathVal && pathVal.then) {
                        if (!("$$v" in pathVal)) {
                          promise = pathVal;
                          promise.$$v = undefined;
                          promise.then(function(val) { promise.$$v = val; });
                  Severity: Major
                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                  bower_components/angular/angular.js on lines 6621..6628
                  bower_components/angular/angular.js on lines 6632..6639
                  bower_components/angular/angular.js on lines 6643..6650
                  bower_components/angular/angular.js on lines 6665..6672

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

                  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 5 locations. Consider refactoring.
                  Open

                      if (pathVal && pathVal.then) {
                        if (!("$$v" in pathVal)) {
                          promise = pathVal;
                          promise.$$v = undefined;
                          promise.then(function(val) { promise.$$v = val; });
                  Severity: Major
                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                  bower_components/angular/angular.js on lines 6621..6628
                  bower_components/angular/angular.js on lines 6632..6639
                  bower_components/angular/angular.js on lines 6643..6650
                  bower_components/angular/angular.js on lines 6654..6661

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

                  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 5 locations. Consider refactoring.
                  Open

                      if (pathVal && pathVal.then) {
                        if (!("$$v" in pathVal)) {
                          promise = pathVal;
                          promise.$$v = undefined;
                          promise.then(function(val) { promise.$$v = val; });
                  Severity: Major
                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                  bower_components/angular/angular.js on lines 6621..6628
                  bower_components/angular/angular.js on lines 6632..6639
                  bower_components/angular/angular.js on lines 6654..6661
                  bower_components/angular/angular.js on lines 6665..6672

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

                  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

                  Function $digest has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        $digest: function() {
                          var watch, value, last,
                              watchers,
                              asyncQueue,
                              length,
                  Severity: Major
                  Found in bower_components/angular/angular.js - About 2 hrs to fix

                    Function compileTemplateUrl has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function compileTemplateUrl(directives, beforeTemplateNodeLinkFn, $compileNode, tAttrs,
                            $rootElement, replace, childTranscludeFn) {
                          var linkQueue = [],
                              afterTemplateNodeLinkFn,
                              afterTemplateChildLinkFn,
                    Severity: Major
                    Found in bower_components/angular/angular.js - About 2 hrs to fix

                      Function Deferred has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          Deferred: function( func ) {
                              var tuples = [
                                      // action, add listener, listener list, final state
                                      [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                      [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                      Severity: Major
                      Found in bower_components/jquery/jquery.js - About 2 hrs to fix

                        Function getLibrary has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function getLibrary(exports, path) {
                            // Normalize paths.
                            path = path.replace(/\.js$/, '') + '.js';
                            if (isNode) {
                              // Use Node's `vm` module.
                        Severity: Major
                        Found in bower_components/json3/benchmark/benchmark_json3.js - About 2 hrs to fix

                          Function readIdent has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function readIdent() {
                              var ident = "",
                                  start = index,
                                  lastDot, peekIndex, methodName, ch;
                          
                          
                          Severity: Major
                          Found in bower_components/angular/angular.js - About 2 hrs to fix

                            Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    "CHILD": function( type, what, argument, first, last ) {
                                        var simple = type.slice( 0, 3 ) !== "nth",
                                            forward = type.slice( -4 ) !== "last",
                                            ofType = what === "of-type";
                            
                            
                            Severity: Major
                            Found in bower_components/jquery/jquery.js - About 2 hrs to fix

                              Consider simplifying this complex logical expression.
                              Open

                                                      if ( forward && useCache ) {
                                                          // Seek `elem` from a previously-cached index
                                                          outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                          cache = outerCache[ type ] || [];
                                                          nodeIndex = cache[0] === dirruns && cache[1];
                              Severity: Critical
                              Found in bower_components/jquery/jquery.js - About 2 hrs to fix
                                Severity
                                Category
                                Status
                                Source
                                Language