ericduran/chromeHAR

View on GitHub

Showing 371 of 463 total issues

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

    function invoke(fn, self, locals){
      var args = [],
          $inject = annotate(fn),
          length, i,
          key;
Severity: Minor
Found in bower_components/angular/angular.js - About 1 hr to fix

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

    var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interpolate) {
      var BRACE = /{}/g;
      return {
        restrict: 'EA',
        link: function(scope, element, attr) {
    Severity: Minor
    Found in bower_components/angular/angular.js - About 1 hr to fix

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

          compile: function(element, attr) {
            if (isUndefined(attr.value)) {
              var interpolateFn = $interpolate(element.text(), true);
              if (!interpolateFn) {
                attr.$set('value', element.text());
      Severity: Minor
      Found in bower_components/angular/angular.js - About 1 hr to fix

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

        function bootstrap(element, modules) {
          var doBootstrap = function() {
            element = jqLite(element);
            modules = modules || [];
            modules.unshift(['$provide', function($provide) {
        Severity: Minor
        Found in bower_components/angular/angular.js - About 1 hr to fix

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

          function JQLitePatchJQueryRemove(name, dispatchThis, filterElems, getterIfNoArguments) {
            var originalJqFn = jQuery.fn[name];
            originalJqFn = originalJqFn.$original || originalJqFn;
            removePatch.$original = originalJqFn;
            jQuery.fn[name] = removePatch;
          Severity: Minor
          Found in bower_components/angular/angular.js - About 1 hr to fix

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

                toggleClass: function( value, stateVal ) {
                    var type = typeof value;
            
                    if ( typeof stateVal === "boolean" && type === "string" ) {
                        return stateVal ? this.addClass( value ) : this.removeClass( value );
            Severity: Minor
            Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                  removeClass: function( value ) {
                      var classes, elem, cur, clazz, j,
                          i = 0,
                          len = this.length,
                          proceed = arguments.length === 0 || typeof value === "string" && value;
              Severity: Minor
              Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                    addClass: function( value ) {
                        var classes, elem, cur, clazz, j,
                            i = 0,
                            len = this.length,
                            proceed = typeof value === "string" && value;
                Severity: Minor
                Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                      function($injector,   $interpolate,   $exceptionHandler,   $http,   $templateCache,   $parse,
                               $controller,   $rootScope,   $document) {
                  Severity: Major
                  Found in bower_components/angular/angular.js - About 1 hr to fix

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

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