ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

Function $HttpProvider has 191 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function $HttpProvider() {
  var JSON_START = /^\s*(\[|\{[^\{])/,
      JSON_END = /[\}\]]\s*$/,
      PROTECTION_PREFIX = /^\)\]\}',?\n/;

Severity: Major
Found in bower_components/angular/angular.js - About 7 hrs to fix

    Function Options has 172 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          function Options(scope, selectElement, ctrl) {
            var match;
    
            if (! (match = optionsExp.match(NG_OPTIONS_REGEXP))) {
              throw Error(
    Severity: Major
    Found in bower_components/angular/angular.js - About 6 hrs to fix

      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

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

                              function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                textInputType(scope, element, attr, ctrl, $sniffer, $browser);
                              
                                var emailValidator = function(value) {
                                  if (isEmpty(value) || EMAIL_REGEXP.test(value)) {
                              Severity: Major
                              Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                              bower_components/angular/angular.js on lines 11921..11936

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

                              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

                              function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                textInputType(scope, element, attr, ctrl, $sniffer, $browser);
                              
                                var urlValidator = function(value) {
                                  if (isEmpty(value) || URL_REGEXP.test(value)) {
                              Severity: Major
                              Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                              bower_components/angular/angular.js on lines 11938..11953

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

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

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

                                  if (attr.max) {
                                    var max = parseFloat(attr.max);
                                    var maxValidator = function(value) {
                                      if (!isEmpty(value) && value > max) {
                                        ctrl.$setValidity('max', false);
                                Severity: Major
                                Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                bower_components/angular/angular.js on lines 11877..11891

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

                                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 (attr.min) {
                                    var min = parseFloat(attr.min);
                                    var minValidator = function(value) {
                                      if (!isEmpty(value) && value < min) {
                                        ctrl.$setValidity('min', false);
                                Severity: Major
                                Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                bower_components/angular/angular.js on lines 11893..11907

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

                                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

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