ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

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

        if ( jQuery.isFunction( html ) ) {
            return this.each(function( i ) {
                jQuery( this ).wrapAll( html.call(this, i) );
            });
        }
Severity: Major
Found in bower_components/jquery/jquery.js and 1 other location - About 1 hr to fix
bower_components/jquery/jquery.js on lines 6023..6027

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

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

        if ( jQuery.isFunction( html ) ) {
            return this.each(function( i ) {
                jQuery( this ).wrapInner( html.call(this, i) );
            });
        }
Severity: Major
Found in bower_components/jquery/jquery.js and 1 other location - About 1 hr to fix
bower_components/jquery/jquery.js on lines 5993..5997

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

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 * has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        "*": [function( prop, value ) {
            var tween = this.createTween( prop, value ),
                target = tween.cur(),
                parts = rfxnum.exec( value ),
                unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
Severity: Minor
Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

        off: function( types, selector, fn ) {
            var handleObj, type;
            if ( types && types.preventDefault && types.handleObj ) {
                // ( event )  dispatched jQuery.Event
                handleObj = types.handleObj;
    Severity: Minor
    Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

          clone: function( elem, dataAndEvents, deepDataAndEvents ) {
              var i, l, srcElements, destElements,
                  clone = elem.cloneNode( true ),
                  inPage = jQuery.contains( elem.ownerDocument, elem );
      
      
      Severity: Minor
      Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

        jQuery.fn.offset = function( options ) {
            if ( arguments.length ) {
                return options === undefined ?
                    this :
                    this.each(function( i ) {
        Severity: Minor
        Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

            function serialize(object) {
              var out;
          
              if (angular.isElement(object)) {
                object = angular.element(object);
          Severity: Minor
          Found in bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

              if (value && value.length !== 0) {
                var v = lowercase("" + value);
                value = !(v == 'f' || v == '0' || v == 'false' || v == 'no' || v == 'n' || v == '[]');
              } else {
                value = false;
            Severity: Major
            Found in bower_components/angular/angular.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                if (decodeURIComponent(match.path) == basePath && !isUndefined(match.hash) &&
                    match.hash.indexOf(hashPrefix) === 0) {
                  return url;
                // convert html5 url -> hashbang url
                } else {
              Severity: Major
              Found in bower_components/angular/angular.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                            if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                    support.getById && context.nodeType === 9 && documentIsHTML &&
                                    Expr.relative[ tokens[1].type ] ) {
                
                                context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                Severity: Major
                Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                          "odd": createPositionalPseudo(function( matchIndexes, length ) {
                              var i = 1;
                              for ( ; i < length; i += 2 ) {
                                  matchIndexes.push( i );
                              }
                  Severity: Minor
                  Found in bower_components/jquery/jquery.js and 1 other location - About 55 mins to fix
                  bower_components/jquery/jquery.js on lines 2214..2220

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

                  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

                          "even": createPositionalPseudo(function( matchIndexes, length ) {
                              var i = 0;
                              for ( ; i < length; i += 2 ) {
                                  matchIndexes.push( i );
                              }
                  Severity: Minor
                  Found in bower_components/jquery/jquery.js and 1 other location - About 55 mins to fix
                  bower_components/jquery/jquery.js on lines 2222..2228

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

                  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 readSource has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                  Open

                  fs.readFile(path.join(__dirname, "lib", "json3.js"), "utf8", function readSource(exception, source) {
                    var error, output, compiler, results;
                    if (exception) {
                      console.log(exception);
                    } else {
                  Severity: Minor
                  Found in bower_components/json3/build.js - About 55 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function compileTemplateUrl has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      function compileTemplateUrl(directives, beforeTemplateNodeLinkFn, $compileNode, tAttrs,
                          $rootElement, replace, childTranscludeFn) {
                  Severity: Major
                  Found in bower_components/angular/angular.js - About 50 mins to fix

                    Function $get has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                          function( $rootScope,   $location,   $routeParams,   $q,   $injector,   $http,   $templateCache) {
                    Severity: Major
                    Found in bower_components/angular/angular.js - About 50 mins to fix

                      Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
                      Severity: Major
                      Found in bower_components/jquery/jquery.js - About 50 mins to fix

                        Function Date has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                function Date(Y, M, D, h, m, s, ms) {
                        Severity: Major
                        Found in bower_components/es5-shim/es5-shim.js - About 50 mins to fix

                          Function serialize has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                var serialize = function (property, object, callback, properties, whitespace, indentation, stack) {
                          Severity: Major
                          Found in bower_components/json3/lib/json3.js - About 50 mins to fix

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

                                var wrappedCallback = function(value) {
                                  try {
                                    return (callback || defaultCallback)(value);
                                  } catch (e) {
                                    exceptionHandler(e);
                            Severity: Minor
                            Found in bower_components/angular/angular.js and 1 other location - About 50 mins to fix
                            bower_components/angular/angular.js on lines 7113..7120

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

                            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

                                var wrappedErrback = function(reason) {
                                  try {
                                    return (errback || defaultErrback)(reason);
                                  } catch (e) {
                                    exceptionHandler(e);
                            Severity: Minor
                            Found in bower_components/angular/angular.js and 1 other location - About 50 mins to fix
                            bower_components/angular/angular.js on lines 7104..7111

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

                            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

                            Severity
                            Category
                            Status
                            Source
                            Language