civio/quienmanda.es

View on GitHub

Showing 289 of 375 total issues

Function Callbacks has 121 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 extras/trips/src/js/jquery-2.2.4.js - About 4 hrs to fix

    Function defineGetSize has 108 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function defineGetSize( getStyleProperty ) {
    
    // -------------------------- setup -------------------------- //
    
    var isSetup = false;
    Severity: Major
    Found in app/assets/javascripts/packery.pkgd.js - About 4 hrs to fix

      Function defaultPrefilter has 99 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 extras/trips/dist/js/qm-trips.js - About 3 hrs to fix

        Function defaultPrefilter has 99 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 extras/trips/src/js/jquery-2.2.4.js - About 3 hrs to fix

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

          function Animation( elem, properties, options ) {
              var result,
                  stopped,
                  index = 0,
                  length = Animation.prefilters.length,
          Severity: Major
          Found in extras/trips/dist/js/qm-trips.js - About 3 hrs to fix

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

            function Animation( elem, properties, options ) {
                var result,
                    stopped,
                    index = 0,
                    length = Animation.prefilters.length,
            Severity: Major
            Found in extras/trips/src/js/jquery-2.2.4.js - About 3 hrs to fix

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

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

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

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

                  Function rectDefinition has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function rectDefinition() {
                  
                  // -------------------------- Rect -------------------------- //
                  
                  function Rect( props ) {
                  Severity: Major
                  Found in app/assets/javascripts/packery.pkgd.js - About 3 hrs to fix

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

                    function itemDefinition( getStyleProperty, Outlayer, Rect ) {
                    
                    var transformProperty = getStyleProperty('transform');
                    
                    // sub-class Item
                    Severity: Major
                    Found in app/assets/javascripts/packery.pkgd.js - About 3 hrs to fix

                      Function packerDefinition has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function packerDefinition( Rect ) {
                      
                      /**
                       * @param {Number} width
                       * @param {Number} height
                      Severity: Major
                      Found in app/assets/javascripts/packery.pkgd.js - About 3 hrs to fix

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

                        function Sizzle( selector, context, results, seed ) {
                            var m, i, elem, nid, nidselect, match, groups, newSelector,
                                newContext = context && context.ownerDocument,
                        
                                // nodeType defaults to 9, since context defaults to document
                        Severity: Major
                        Found in extras/trips/src/js/jquery-2.2.4.js - About 3 hrs to fix

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

                          function Sizzle( selector, context, results, seed ) {
                              var m, i, elem, nid, nidselect, match, groups, newSelector,
                                  newContext = context && context.ownerDocument,
                          
                                  // nodeType defaults to 9, since context defaults to document
                          Severity: Major
                          Found in extras/trips/dist/js/qm-trips.js - About 3 hrs to fix

                            Function CHILD has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    "CHILD": function( type, what, argument, first, last ) {
                                        var simple = type.slice( 0, 3 ) !== "nth",
                                            forward = type.slice( -4 ) !== "last",
                                            ofType = what === "of-type";
                            
                            
                            Severity: Major
                            Found in extras/trips/src/js/jquery-2.2.4.js - About 3 hrs to fix

                              Function CHILD has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      "CHILD": function( type, what, argument, first, last ) {
                                          var simple = type.slice( 0, 3 ) !== "nth",
                                              forward = type.slice( -4 ) !== "last",
                                              ofType = what === "of-type";
                              
                              
                              Severity: Major
                              Found in extras/trips/dist/js/qm-trips.js - About 3 hrs to fix

                                Method show has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                                Open

                                  def show
                                    authorize! :read, @post
                                    if stale?(@post)
                                      @title = @post.title
                                
                                
                                Severity: Minor
                                Found in app/controllers/posts_controller.rb - About 3 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 send has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                            send: function( headers, complete ) {
                                                var i,
                                                    xhr = options.xhr();
                                
                                                xhr.open(
                                Severity: Major
                                Found in extras/trips/dist/js/qm-trips.js - About 3 hrs to fix

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

                                              send: function( headers, complete ) {
                                                  var i,
                                                      xhr = options.xhr();
                                  
                                                  xhr.open(
                                  Severity: Major
                                  Found in extras/trips/src/js/jquery-2.2.4.js - About 3 hrs to fix

                                    Function matcherFromGroupMatchers has 72 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 extras/trips/src/js/jquery-2.2.4.js - About 2 hrs to fix

                                      Function matcherFromGroupMatchers has 72 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 extras/trips/dist/js/qm-trips.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language