ericduran/chromeHAR

View on GitHub

Showing 371 of 463 total issues

Function $setValidity has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  form.$setValidity = function(validationToken, isValid, control) {
    var queue = errors[validationToken];

    if (isValid) {
      if (queue) {
Severity: Minor
Found in bower_components/angular/angular.js - About 1 hr to fix

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

      function getType(ct, url) {
        if (ct === undefined) {
          return 'oth';
        }
        ct = ct.toLowerCase();
    Severity: Minor
    Found in js/controllers.js - About 1 hr to fix

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

      jQuery.fn.load = function( url, params, callback ) {
          if ( typeof url !== "string" && _load ) {
              return _load.apply( this, arguments );
          }
      
      
      Severity: Minor
      Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                Array.prototype.splice = function(start, deleteCount) {
                    var result
                        , args = _Array_slice_.call(arguments, 2)
                        , addElementsCount = args.length
                    ;
        Severity: Minor
        Found in bower_components/es5-shim/es5-shim.js - About 1 hr to fix

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

              style: function( elem, name, value, extra ) {
                  // Don't set styles on text and comment nodes
                  if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                      return;
                  }
          Severity: Minor
          Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {
                    if ((typeof object != "object" && typeof object != "function") || object === null) {
                        throw new TypeError(ERR_NON_OBJECT + object);
                    }
            
            
            Severity: Minor
            Found in bower_components/es5-shim/es5-sham.js - About 1 hr to fix

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

                  Array.prototype.reduce = function reduce(fun /*, initial*/) {
                      var object = toObject(this),
                          self = splitString && _toString(this) == "[object String]" ?
                              this.split("") :
                              object,
              Severity: Minor
              Found in bower_components/es5-shim/es5-shim.js - About 1 hr to fix

                Function UIString has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                Open

                WebInspector.UIString = function(string, vararg)
                {
                    if (Preferences.localizeUI) {
                        if (window.localizedStrings && string in window.localizedStrings)
                            string = window.localizedStrings[string];
                Severity: Minor
                Found in js/libs/devTools.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 primary has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function primary() {
                    var primary;
                    if (expect('(')) {
                      primary = filterChain();
                      consume(')');
                Severity: Minor
                Found in bower_components/angular/angular.js - About 1 hr to fix

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

                    self.cookies = function(name, value) {
                      var cookieLength, cookieArray, cookie, i, index;
                  
                      if (name) {
                        if (value === undefined) {
                  Severity: Minor
                  Found in bower_components/angular/angular.js - About 1 hr to fix

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

                      function HAREntry(entry, id, start_time, data) {
                        this._entry = entry;
                        this._id = id;
                    
                        // Response
                    Severity: Minor
                    Found in js/libs/HAREntry.js - About 1 hr to fix

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

                            compile: function() {
                              return {
                                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
                      Severity: Minor
                      Found in bower_components/angular/angular.js - About 1 hr to fix

                        Function $get has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                               function($rootScope,   $browser,   $q,   $exceptionHandler) {
                            var deferreds = {};
                        
                        
                             /**
                        Severity: Minor
                        Found in bower_components/angular/angular.js - About 1 hr to fix

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

                                url: function(params) {
                                  var self = this,
                                      url = this.template,
                                      val,
                                      encodedVal;
                          Severity: Minor
                          Found in bower_components/angular-resource/angular-resource.js - About 1 hr to fix

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

                            function LocationHashbangUrl(url, hashPrefix, appBaseUrl) {
                              var basePath;
                            
                              /**
                               * Parse given hashbang url into properties
                            Severity: Minor
                            Found in bower_components/angular/angular.js - About 1 hr to fix

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

                                var when = function(value, callback, errback) {
                                  var result = defer(),
                                      done;
                              
                                  var wrappedCallback = function(value) {
                              Severity: Minor
                              Found in bower_components/angular/angular.js - About 1 hr to fix

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

                                    handlers: function( event, handlers ) {
                                        var i, matches, sel, handleObj,
                                            handlerQueue = [],
                                            delegateCount = handlers.delegateCount,
                                            cur = event.target;
                                Severity: Minor
                                Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                                      attr: function( elem, name, value ) {
                                          var hooks, ret,
                                              nType = elem.nodeType;
                                  
                                          // don't get/set attributes on text, comment and attribute nodes
                                  Severity: Minor
                                  Found in bower_components/jquery/jquery.js - About 1 hr to fix

                                    Function $get has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      this.$get = function () {
                                        var $log = {
                                          log: function() { $log.log.logs.push(concat([], arguments, 0)); },
                                          warn: function() { $log.warn.logs.push(concat([], arguments, 0)); },
                                          info: function() { $log.info.logs.push(concat([], arguments, 0)); },
                                    Severity: Minor
                                    Found in bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

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

                                        var parseHash = ui.parseHash = function parseHash() {
                                          var hashes = location.hash.slice(1).split('&'),
                                              parameters = this.parameters || (this.parameters = {});
                                      
                                          // Clear original parameters.
                                      Severity: Minor
                                      Found in bower_components/json3/benchmark/assets/ui.js - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language