ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

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

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

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

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

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

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

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

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

  function loadModules(modulesToLoad){
    var runBlocks = [];
    forEach(modulesToLoad, function(module) {
      if (loadedModules.get(module)) return;
      loadedModules.put(module, true);
Severity: Minor
Found in bower_components/angular/angular.js - About 1 hr to fix

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

    function angularInit(element, bootstrap) {
      var elements = [element],
          appElement,
          module,
          names = ['ng:app', 'ng-app', 'x-ng-app', 'data-ng-app'],
    Severity: Minor
    Found in bower_components/angular/angular.js - About 1 hr to fix

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

          each: function( obj, callback, args ) {
              var value,
                  i = 0,
                  length = obj.length,
                  isArray = isArraylike( obj );
      Severity: Minor
      Found in bower_components/jquery/jquery.js - About 1 hr to fix

        Function $broadcast has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              $broadcast: function(name, args) {
                var target = this,
                    current = target,
                    next = target,
                    event = {
        Severity: Minor
        Found in bower_components/angular/angular.js - About 1 hr to fix

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

          function equals(o1, o2) {
            if (o1 === o2) return true;
            if (o1 === null || o2 === null) return false;
            if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
            var t1 = typeof o1, t2 = typeof o2, length, key, keySet;
          Severity: Minor
          Found in bower_components/angular/angular.js - About 1 hr to fix

            Function $set has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  $set: function(key, value, writeAttr, attrName) {
                    var booleanKey = getBooleanAttrName(this.$$element[0], key),
                        $$observers = this.$$observers,
                        normalizedVal;
            
            
            Severity: Minor
            Found in bower_components/angular/angular.js - About 1 hr to fix

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

                  link: function(scope, element, attr) {
                    var lastScope,
                        onloadExp = attr.onload || '';
              
                    scope.$on('$routeChangeSuccess', update);
              Severity: Minor
              Found in bower_components/angular/angular.js - About 1 hr to fix

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

                function ajaxHandleResponses( s, jqXHR, responses ) {
                
                    var ct, type, finalDataType, firstDataType,
                        contents = s.contents,
                        dataTypes = s.dataTypes;
                Severity: Minor
                Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                  function showHide( elements, show ) {
                      var display, elem, hidden,
                          values = [],
                          index = 0,
                          length = elements.length;
                  Severity: Minor
                  Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                            responses.push(function() {
                              var response = expectation.response(method, url, data, headers);
                              xhr.$$respHeaders = response[2];
                              callback(response[0], response[1], xhr.getAllResponseHeaders());
                            });
                    Severity: Major
                    Found in bower_components/angular-mocks/angular-mocks.js and 1 other location - About 1 hr to fix
                    bower_components/angular-mocks/angular-mocks.js on lines 946..950

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

                    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

                        addEventListenerFn = (window.document.addEventListener
                          ? function(element, type, fn) {element.addEventListener(type, fn, false);}
                          : function(element, type, fn) {element.attachEvent('on' + type, fn);}),
                    Severity: Major
                    Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                    bower_components/angular/angular.js on lines 1607..1609

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

                    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 {
                                  result.resolve((errback || defaultErrback)(reason));
                                } catch(e) {
                                  result.reject(e);
                    Severity: Major
                    Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                    bower_components/angular/angular.js on lines 6993..7000

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

                    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 ngShowDirective = ngDirective(function(scope, element, attr){
                      scope.$watch(attr.ngShow, function ngShowWatchAction(value){
                        element.css('display', toBoolean(value) ? '' : 'none');
                      });
                    });
                    Severity: Major
                    Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                    bower_components/angular/angular.js on lines 14140..14144

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

                    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 ngHideDirective = ngDirective(function(scope, element, attr){
                      scope.$watch(attr.ngHide, function ngHideWatchAction(value){
                        element.css('display', toBoolean(value) ? 'none' : '');
                      });
                    });
                    Severity: Major
                    Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                    bower_components/angular/angular.js on lines 14100..14104

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

                    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

                        removeEventListenerFn = (window.document.removeEventListener
                          ? function(element, type, fn) {element.removeEventListener(type, fn, false); }
                          : function(element, type, fn) {element.detachEvent('on' + type, fn); });
                    Severity: Major
                    Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                    bower_components/angular/angular.js on lines 1604..1606

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

                    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 wrappedCallback = function(value) {
                                try {
                                  result.resolve((callback || defaultCallback)(value));
                                } catch(e) {
                                  result.reject(e);
                    Severity: Major
                    Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                    bower_components/angular/angular.js on lines 7002..7009

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

                    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

                              ($browser ? $browser.defer : responsesPush)(function() {
                                var response = definition.response(method, url, data, headers);
                                xhr.$$respHeaders = response[2];
                                callback(response[0], response[1], xhr.getAllResponseHeaders());
                              });
                    Severity: Major
                    Found in bower_components/angular-mocks/angular-mocks.js and 1 other location - About 1 hr to fix
                    bower_components/angular-mocks/angular-mocks.js on lines 931..935

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

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

                      var eventHandler = function (event, type) {
                        if (!event.preventDefault) {
                          event.preventDefault = function() {
                            event.returnValue = false; //ie
                          };
                    Severity: Minor
                    Found in bower_components/angular/angular.js - About 1 hr to fix
                      Severity
                      Category
                      Status
                      Source
                      Language