ericduran/chromeHAR

View on GitHub

Showing 371 of 463 total issues

Function createInjector has 168 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createInjector(modulesToLoad) {
  var INSTANTIATING = {},
      providerSuffix = 'Provider',
      path = [],
      loadedModules = new HashMap(),
Severity: Major
Found in bower_components/angular/angular.js - About 6 hrs to fix

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

          function($httpBackend, $browser, $cacheFactory, $rootScope, $q, $injector) {
    
        var defaultCache = $cacheFactory('$http'),
            responseInterceptors = [];
    
    
    Severity: Major
    Found in bower_components/angular/angular.js - About 6 hrs to fix

      Function Browser has 153 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function Browser(window, document, $log, $sniffer) {
        var self = this,
            rawDocument = document[0],
            location = window.location,
            history = window.history,
      Severity: Major
      Found in bower_components/angular/angular.js - About 6 hrs to fix

        Function $RouteProvider has 144 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function $RouteProvider(){
          var routes = {};
        
          /**
           * @ngdoc method
        Severity: Major
        Found in bower_components/angular/angular.js - About 5 hrs to fix

          Function qFactory has 140 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function qFactory(nextTick, exceptionHandler) {
          
            /**
             * @ngdoc
             * @name ng.$q#defer
          Severity: Major
          Found in bower_components/angular/angular.js - About 5 hrs to fix

            Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            jQuery.Callbacks = function( options ) {
            
                // Convert options from String-formatted to Object-formatted if needed
                // (we check in cache first)
                options = typeof options === "string" ?
            Severity: Major
            Found in bower_components/jquery/jquery.js - About 5 hrs to fix

              Function createHttpBackendMock has 127 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function createHttpBackendMock($delegate, $browser) {
                var definitions = [],
                    expectations = [],
                    responses = [],
                    responsesPush = angular.bind(responses, responses.push);
              Severity: Major
              Found in bower_components/angular-mocks/angular-mocks.js - About 5 hrs to fix

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

                      function( $rootScope,   $location,   $routeParams,   $q,   $injector,   $http,   $templateCache) {
                
                    /**
                     * @ngdoc object
                     * @name ng.$route
                Severity: Major
                Found in bower_components/angular/angular.js - About 5 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if ( event.pageX == null && original.clientX != null ) {
                                  eventDoc = event.target.ownerDocument || document;
                                  doc = eventDoc.documentElement;
                                  body = eventDoc.body;
                  
                  
                  Severity: Critical
                  Found in bower_components/jquery/jquery.js - About 5 hrs to fix

                    File jquery-migrate.js has 371 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*!
                     * jQuery Migrate - v1.1.1 - 2013-02-16
                     * https://github.com/jquery/jquery-migrate
                     * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
                     */
                    Severity: Minor
                    Found in bower_components/jquery/jquery-migrate.js - About 4 hrs to fix

                      Function HAREntryClosure has 118 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var HAREntry = (function HAREntryClosure() {
                        'use strict';
                      
                        /**
                         * A single entry request.
                      Severity: Major
                      Found in js/libs/HAREntry.js - About 4 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                if (stringifySupported) {
                                  // A test function object with a custom `toJSON` method.
                                  (value = function () {
                                    return 1;
                                  }).toJSON = value;
                        Severity: Critical
                        Found in bower_components/json3/lib/json3.js - About 4 hrs to fix

                          Function render has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function render() {
                                    var optionGroups = {'':[]}, // Temporary location for the option groups before we render them
                                        optionGroupNames = [''],
                                        optionGroupName,
                                        optionGroup,
                          Severity: Major
                          Found in bower_components/angular/angular.js - About 4 hrs to fix

                            File ui.js has 352 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*!
                             * ui.js
                             * Copyright Mathias Bynens <http://mths.be/>
                             * Modified by John-David Dalton <http://allyoucanleet.com/>
                             * Available under MIT license <http://mths.be/mit>
                            Severity: Minor
                            Found in bower_components/json3/benchmark/assets/ui.js - About 4 hrs to fix

                              Function extractComments has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function extractComments(source) {
                                var index = 0, length = source.length, results = [], symbol, position, original;
                                while (index < length) {
                                  symbol = source[index];
                                  switch (symbol) {
                              Severity: Minor
                              Found in bower_components/json3/build.js - About 4 hrs 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 $LocationProvider has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function $LocationProvider(){
                                var hashPrefix = '',
                                    html5Mode = false;
                              
                                /**
                              Severity: Major
                              Found in bower_components/angular/angular.js - About 4 hrs to fix

                                Function lex has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      var lex = function () {
                                        var source = Source, length = source.length, value, begin, position, isSigned, charCode;
                                        while (Index < length) {
                                          charCode = source.charCodeAt(Index);
                                          switch (charCode) {
                                Severity: Major
                                Found in bower_components/json3/lib/json3.js - About 4 hrs to fix

                                  Function publishExternalAPI has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function publishExternalAPI(angular){
                                    extend(angular, {
                                      'bootstrap': bootstrap,
                                      'copy': copy,
                                      'extend': extend,
                                  Severity: Major
                                  Found in bower_components/angular/angular.js - About 4 hrs to fix

                                    Function ResourceFactory has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function ResourceFactory(url, paramDefaults, actions) {
                                          var route = new Route(url);
                                    
                                          actions = extend({}, DEFAULT_ACTIONS, actions);
                                    
                                    
                                    Severity: Major
                                    Found in bower_components/angular-resource/angular-resource.js - About 4 hrs to fix

                                      File html5.js has 330 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      /*!
                                       * HTML5.js v1.0.0-rc
                                       * Copyright 2012 John-David Dalton <http://allyoucanleet.com/>
                                       * Based on HTML5 Shiv vpre3.3 | @afarkas @jon_neal @rem | MIT/GPL2 Licensed
                                       * Available under MIT/GPL2 license
                                      Severity: Minor
                                      Found in bower_components/json3/benchmark/assets/html5.js - About 3 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language