ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

Function $AnchorScrollProvider has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function $AnchorScrollProvider() {

  var autoScrollingEnabled = true;

  this.disableAutoScrolling = function() {
Severity: Minor
Found in bower_components/angular/angular.js - About 1 hr to fix

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

        Function.prototype.bind = function bind(that) { // .length is 1
            // 1. Let Target be the this value.
            var target = this;
            // 2. If IsCallable(Target) is false, throw a TypeError exception.
            if (typeof target != "function") {
    Severity: Minor
    Found in bower_components/es5-shim/es5-shim.js - About 1 hr to fix

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

          finish: function( type ) {
              if ( type !== false ) {
                  type = type || "fx";
              }
              return this.each(function() {
      Severity: Minor
      Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

        function MockHttpExpectation(method, url, data, headers) {
        
          this.data = data;
          this.headers = headers;
        
        
        Severity: Minor
        Found in bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

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

              preventDefault: function() {
                  var e = this.originalEvent;
          
                  this.isDefaultPrevented = returnTrue;
          
          
          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 4958..4966

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

          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 512..516

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

          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 463..467

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

          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

              stopPropagation: function() {
                  var e = this.originalEvent;
          
                  this.isPropagationStopped = returnTrue;
          
          
          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 4949..4957

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

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

          fs.readFile(path.join(__dirname, "README.md"), "utf8", function readInfo(exception, source) {
            if (exception) {
              console.log(exception);
            } else {
              // Read the project page template.
          Severity: Minor
          Found in bower_components/json3/build.js - About 1 hr 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 cookies has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

            cookies:  function(name, value) {
              if (name) {
                if (value == undefined) {
                  delete this.cookieHash[name];
                } else {
          Severity: Minor
          Found in bower_components/angular-mocks/angular-mocks.js - About 1 hr 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 $new has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                $new: function(isolate) {
                  var Child,
                      child;
          
                  if (isFunction(isolate)) {
          Severity: Minor
          Found in bower_components/angular/angular.js - About 1 hr to fix

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

              function readNumber() {
                var number = "";
                var start = index;
                while (index < text.length) {
                  var ch = lowercase(text.charAt(index));
            Severity: Minor
            Found in bower_components/angular/angular.js - About 1 hr to fix

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

                        pre: function(scope, formElement, attr, controller) {
                          if (!attr.action) {
                            // we can't use jq events because if a form is destroyed during submission the default
                            // action is not prevented. see #1238
                            //
              Severity: Minor
              Found in bower_components/angular/angular.js - About 1 hr to fix

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

                    jQuery.clean = function( elems, context, fragment, scripts ) {
                        // Set context per 1.8 logic
                        context = context || document;
                        context = !context.nodeType && context[0] || context;
                        context = context.ownerDocument || context;
                Severity: Minor
                Found in bower_components/jquery/jquery-migrate.js - About 1 hr to fix

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

                  function propFilter( props, specialEasing ) {
                      var index, name, easing, value, hooks;
                  
                      // camelCase, specialEasing and expand cssHook pass
                      for ( index in props ) {
                  Severity: Minor
                  Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                        fix: function( event ) {
                            if ( event[ jQuery.expando ] ) {
                                return event;
                            }
                    
                    
                    Severity: Minor
                    Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                          Date.prototype.toISOString = function toISOString() {
                              var result, length, value, year, month;
                              if (!isFinite(this)) {
                                  throw new RangeError("Date.prototype.toISOString called on non-finite value.");
                              }
                      Severity: Minor
                      Found in bower_components/es5-shim/es5-shim.js - About 1 hr to fix

                        Function $ExceptionHandlerProvider has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        angular.mock.$ExceptionHandlerProvider = function() {
                          var handler;
                        
                          /**
                           * @ngdoc method
                        Severity: Minor
                        Found in bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

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

                                        if (hasMembers) {
                                          if (value == ",") {
                                            value = lex();
                                            if (value == "]") {
                                              // Unexpected trailing `,` in array literal.
                          Severity: Major
                          Found in bower_components/json3/lib/json3.js and 1 other location - About 1 hr to fix
                          bower_components/json3/lib/json3.js on lines 751..762

                          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 (hasMembers) {
                                          if (value == ",") {
                                            value = lex();
                                            if (value == "}") {
                                              // Unexpected trailing `,` in object literal.
                          Severity: Major
                          Found in bower_components/json3/lib/json3.js and 1 other location - About 1 hr to fix
                          bower_components/json3/lib/json3.js on lines 721..732

                          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

                          Severity
                          Category
                          Status
                          Source
                          Language