gil27/agregador

View on GitHub

Showing 182 of 216 total issues

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

/*!
 * jQuery JavaScript Library v1.11.1
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in public/javascripts/jquery.js - About 2 wks to fix

    Function Sizzle has 1347 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    (function( window ) {
    
    var i,
        support,
        Expr,
    Severity: Major
    Found in public/javascripts/jquery.js - About 6 days to fix

      Function Modernizr has 587 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      window.Modernizr = (function( window, document, undefined ) {
      
          var version = '2.7.1',
      
          Modernizr = {},
      Severity: Major
      Found in app/assets/javascripts/modernizer-2.7.1.js - About 2 days to fix

        Function Modernizr has a Cognitive Complexity of 113 (exceeds 5 allowed). Consider refactoring.
        Open

        window.Modernizr = (function( window, document, undefined ) {
        
            var version = '2.7.1',
        
            Modernizr = {},
        Severity: Minor
        Found in app/assets/javascripts/modernizer-2.7.1.js - About 2 days 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 pace.js has 785 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
        Copyright (c) 2013 HubSpot, Inc.
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        Severity: Major
        Found in app/assets/javascripts/pace.js - About 1 day to fix

          File modernizer-2.7.1.js has 593 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* Modernizr 2.7.1 (Custom Build) | MIT & BSD
           * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
           */
          ;
          
          
          Severity: Major
          Found in app/assets/javascripts/modernizer-2.7.1.js - About 1 day to fix

            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 public/javascripts/jquery.js - About 1 day to fix

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

              setDocument = Sizzle.setDocument = function( node ) {
                  var hasCompare,
                      doc = node ? node.ownerDocument || node : preferredDoc,
                      parent = doc.defaultView;
              
              
              Severity: Major
              Found in public/javascripts/jquery.js - About 1 day 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 public/javascripts/jquery.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 public/javascripts/jquery.js - About 5 hrs to fix

                    Function defaultPrefilter has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function defaultPrefilter( elem, props, opts ) {
                        /* jshint validthis: true */
                        var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                            anim = this,
                            orig = {},
                    Severity: Major
                    Found in public/javascripts/jquery.js - About 4 hrs to fix

                      `` has 30 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      {
                          easeInQuad: function (x, t, b, c, d) {
                              return c*(t/=d)*t + b;
                          },
                          easeOutQuad: function (x, t, b, c, d) {
                      Severity: Minor
                      Found in app/assets/javascripts/easing.js - About 3 hrs to fix

                        Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            trigger: function( event, data, elem, onlyHandlers ) {
                                var handle, ontype, cur,
                                    bubbleType, special, tmp, i,
                                    eventPath = [ elem || document ],
                                    type = hasOwn.call( event, "type" ) ? event.type : event,
                        Severity: Major
                        Found in public/javascripts/jquery.js - About 3 hrs to fix

                          Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function Animation( elem, properties, options ) {
                              var result,
                                  stopped,
                                  index = 0,
                                  length = animationPrefilters.length,
                          Severity: Major
                          Found in public/javascripts/jquery.js - About 3 hrs to fix

                            Function Sizzle has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function Sizzle( selector, context, results, seed ) {
                                var match, elem, m, nodeType,
                                    // QSA vars
                                    i, groups, old, nid, newContext, newSelector;
                            
                            
                            Severity: Major
                            Found in public/javascripts/jquery.js - About 3 hrs to fix

                              Function buildFragment has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  buildFragment: function( elems, context, scripts, selection ) {
                                      var j, elem, contains,
                                          tmp, tag, tbody, wrap,
                                          l = elems.length,
                              
                              
                              Severity: Major
                              Found in public/javascripts/jquery.js - About 2 hrs to fix

                                Function add has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    add: function( elem, types, handler, data, selector ) {
                                        var tmp, events, t, handleObjIn,
                                            special, eventHandle, handleObj,
                                            handlers, type, namespaces, origType,
                                            elemData = jQuery._data( elem );
                                Severity: Major
                                Found in public/javascripts/jquery.js - About 2 hrs to fix

                                  File jquery_ujs.js has 288 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  (function($, undefined) {
                                  
                                  /**
                                   * Unobtrusive scripting adapter for jQuery
                                   * https://github.com/rails/jquery-ujs
                                  Severity: Minor
                                  Found in public/javascripts/jquery_ujs.js - About 2 hrs to fix

                                    Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                                        var bySet = setMatchers.length > 0,
                                            byElement = elementMatchers.length > 0,
                                            superMatcher = function( seed, context, xml, results, outermost ) {
                                                var elem, j, matcher,
                                    Severity: Major
                                    Found in public/javascripts/jquery.js - About 2 hrs to fix

                                      Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              function done( status, nativeStatusText, responses, headers ) {
                                                  var isSuccess, success, error, response, modified,
                                                      statusText = nativeStatusText;
                                      
                                                  // Called once
                                      Severity: Major
                                      Found in public/javascripts/jquery.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language