ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

File angular.js has 6446 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license AngularJS v1.0.8
 * (c) 2010-2012 Google, Inc. http://angularjs.org
 * License: MIT
 */
Severity: Major
Found in bower_components/angular/angular.js - About 2 wks to fix

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

    /*!
     * jQuery JavaScript Library v2.0.3
     * http://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in bower_components/jquery/jquery.js - About 2 wks to fix

      Function $CompileProvider has 672 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function $CompileProvider($provide) {
        var hasDirectives = {},
            Suffix = 'Directive',
            COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,
            CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/,
      Severity: Major
      Found in bower_components/angular/angular.js - About 3 days to fix

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

            function($injector,   $interpolate,   $exceptionHandler,   $http,   $templateCache,   $parse,
                     $controller,   $rootScope,   $document) {
        
            var Attributes = function(element, attr) {
              this.$$element = element;
        Severity: Major
        Found in bower_components/angular/angular.js - About 3 days to fix

          File es5-shim.js has 764 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          // Copyright 2009-2012 by contributors, MIT License
          // vim: ts=4 sts=4 sw=4 expandtab
          
          // Module systems magic dance
          (function (definition) {
          Severity: Major
          Found in bower_components/es5-shim/es5-shim.js - About 1 day to fix

            Function parser has 335 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function parser(text, json, $filter, csp){
              var ZERO = valueFn(0),
                  value,
                  tokens = lex(text, csp),
                  assignment = _assignment,
            Severity: Major
            Found in bower_components/angular/angular.js - About 1 day to fix

              Function selectDirective has 302 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var selectDirective = ['$compile', '$parse', function($compile,   $parse) {
                                       //0000111110000000000022220000000000000000000000333300000000000000444444444444444440000000005555555555555555500000006666666666666666600000000000000077770
                var NG_OPTIONS_REGEXP = /^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/,
                    nullModelCtrl = {$setViewValue: noop};
              
              
              Severity: Major
              Found in bower_components/angular/angular.js - About 1 day to fix

                File angular-mocks.js has 646 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /**
                 * @license AngularJS v1.0.8
                 * (c) 2010-2012 Google, Inc. http://angularjs.org
                 * License: MIT
                 *
                Severity: Major
                Found in bower_components/angular-mocks/angular-mocks.js - About 1 day to fix

                  Function $RootScopeProvider has 276 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function $RootScopeProvider(){
                    var TTL = 10;
                  
                    this.digestTtl = function(value) {
                      if (arguments.length) {
                  Severity: Major
                  Found in bower_components/angular/angular.js - About 1 day to fix

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

                          function( $injector,   $exceptionHandler,   $parse) {
                    
                        /**
                         * @ngdoc function
                         * @name ng.$rootScope.Scope
                    Severity: Major
                    Found in bower_components/angular/angular.js - About 1 day to fix

                      Function link has 253 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          link: function(scope, element, attr, ctrls) {
                            // if ngModel is not defined, we don't need to do anything
                            if (!ctrls[1]) return;
                      
                            var selectCtrl = ctrls[0],
                      Severity: Major
                      Found in bower_components/angular/angular.js - About 1 day to fix

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

                          function jsonStringToDate(string){
                            var match;
                            if (match = string.match(R_ISO8601_STR)) {
                              var date = new Date(0),
                                  tzHour = 0,
                        Severity: Major
                        Found in bower_components/angular/angular.js and 1 other location - About 1 day to fix
                        bower_components/angular-mocks/angular-mocks.js on lines 415..430

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

                        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 jsonStringToDate(string) {
                            var match;
                            if (match = string.match(R_ISO8061_STR)) {
                              var date = new Date(0),
                                  tzHour = 0,
                        Severity: Major
                        Found in bower_components/angular-mocks/angular-mocks.js and 1 other location - About 1 day to fix
                        bower_components/angular/angular.js on lines 10314..10329

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

                        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 ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            ajax: function( url, options ) {
                        
                                // If url is an object, simulate pre-1.5 signature
                                if ( typeof url === "object" ) {
                                    options = url;
                        Severity: Major
                        Found in bower_components/jquery/jquery.js - About 1 day to fix

                          Function applyDirectivesToNode has 239 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, jqCollection) {
                                var terminalPriority = -Number.MAX_VALUE,
                                    preLinkFns = [],
                                    postLinkFns = [],
                                    newScopeDirective = null,
                          Severity: Major
                          Found in bower_components/angular/angular.js - About 1 day to fix

                            Function createHttpBackendMock has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function createHttpBackendMock($delegate, $browser) {
                              var definitions = [],
                                  expectations = [],
                                  responses = [],
                                  responsesPush = angular.bind(responses, responses.push);
                            Severity: Minor
                            Found in bower_components/angular-mocks/angular-mocks.js - About 1 day 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

                            File json3.js has 541 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*! JSON v3.2.5 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
                            ;(function (window) {
                              // Convenience aliases.
                              var getClass = {}.toString, isProperty, forEach, undef;
                            
                            
                            Severity: Major
                            Found in bower_components/json3/lib/json3.js - About 1 day to fix

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

                              function lex(text, csp){
                                var tokens = [],
                                    token,
                                    index = 0,
                                    json = [],
                              Severity: Major
                              Found in bower_components/angular/angular.js - About 1 day to fix

                                Function setDocument has 200 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                setDocument = Sizzle.setDocument = function( node ) {
                                    var doc = node ? node.ownerDocument || node : preferredDoc,
                                        parent = doc.defaultView;
                                
                                    // If no document and documentElement is available, return
                                Severity: Major
                                Found in bower_components/jquery/jquery.js - About 1 day to fix

                                  Function exports has 197 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  module.exports = function (grunt) {
                                    require('load-grunt-tasks')(grunt);
                                    require('time-grunt')(grunt);
                                  
                                    // configurable paths
                                  Severity: Major
                                  Found in Gruntfile.js - About 7 hrs to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language