civio/quienmanda.es

View on GitHub

Showing 289 of 375 total issues

File qm-trips.js has 6545 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v2.2.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in extras/trips/dist/js/qm-trips.js - About 2 wks to fix

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

    /*!
     * jQuery JavaScript Library v2.2.4
     * http://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in extras/trips/src/js/jquery-2.2.4.js - About 2 wks to fix

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

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

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

        (function( window ) {
        
        var i,
            support,
            Expr,
        Severity: Major
        Found in extras/trips/dist/js/qm-trips.js - About 6 days to fix

          File packery.pkgd.js has 2209 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * Packery PACKAGED v1.3.2
           * bin-packing layout library
           * http://packery.metafizzy.co
           *
          Severity: Major
          Found in app/assets/javascripts/packery.pkgd.js - About 6 days to fix

            Function NetworkGraph has 504 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function NetworkGraph(selector, infobox, undoBtn, redoBtn, historyParams) {
            
              var _this = this;
            
              // Basic D3.js SVG container setup
            Severity: Major
            Found in app/assets/javascripts/viz/network-graph.js - About 2 days to fix

              Function outlayerDefinition has 501 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function outlayerDefinition( eventie, docReady, EventEmitter, getSize, matchesSelector, Item ) {
              
              // -------------------------- Outlayer -------------------------- //
              
              // globally unique identifiers
              Severity: Major
              Found in app/assets/javascripts/packery.pkgd.js - About 2 days to fix

                Function outlayerItemDefinition has 297 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function outlayerItemDefinition( EventEmitter, getSize, getStyleProperty ) {
                
                // -------------------------- CSS3 support -------------------------- //
                
                var transitionProperty = getStyleProperty('transition');
                Severity: Major
                Found in app/assets/javascripts/packery.pkgd.js - About 1 day to fix

                  Function NetworkGraph has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function NetworkGraph(selector, infobox, undoBtn, redoBtn, historyParams) {
                  
                    var _this = this;
                  
                    // Basic D3.js SVG container setup
                  Severity: Minor
                  Found in app/assets/javascripts/viz/network-graph.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

                  Function packeryDefinition has 259 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function packeryDefinition( classie, getSize, Outlayer, Rect, Packer, Item ) {
                  
                  // ----- Rect ----- //
                  
                  // allow for pixel rounding errors IE8-IE11 & Firefox; #227
                  Severity: Major
                  Found in app/assets/javascripts/packery.pkgd.js - About 1 day to fix

                    Function ajax has 249 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 extras/trips/dist/js/qm-trips.js - About 1 day to fix

                      Function ajax has 249 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 extras/trips/src/js/jquery-2.2.4.js - About 1 day to fix

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

                        setDocument = Sizzle.setDocument = function( node ) {
                            var hasCompare, parent,
                                doc = node ? node.ownerDocument || node : preferredDoc;
                        
                            // Return early if doc is invalid or already selected
                        Severity: Major
                        Found in extras/trips/dist/js/qm-trips.js - About 1 day to fix

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

                          setDocument = Sizzle.setDocument = function( node ) {
                              var hasCompare, parent,
                                  doc = node ? node.ownerDocument || node : preferredDoc;
                          
                              // Return early if doc is invalid or already selected
                          Severity: Major
                          Found in extras/trips/src/js/jquery-2.2.4.js - About 1 day to fix

                            File network-graph.js has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            // We define $j instead of $ to avoid conflict with annotorious.js 
                            // (see https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/)
                            $j = jQuery.noConflict();
                            
                            function NetworkGraph(selector, infobox, undoBtn, redoBtn, historyParams) {
                            Severity: Major
                            Found in app/assets/javascripts/viz/network-graph.js - About 1 day to fix

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

                              /*!
                               * imagesLoaded PACKAGED v3.0.4
                               * JavaScript is all like "You images are done yet or what?"
                               */
                              
                              
                              Severity: Minor
                              Found in app/assets/javascripts/jquery.imagesloaded.js - About 6 hrs to fix

                                Function defineImagesLoaded has 157 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function defineImagesLoaded( EventEmitter, eventie ) {
                                
                                  /**
                                   * @param {Array, Element, NodeList, String} elem
                                   * @param {Object or Function} options - if function, use as callback
                                Severity: Major
                                Found in app/assets/javascripts/jquery.imagesloaded.js - About 6 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 extras/trips/src/js/jquery-2.2.4.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 extras/trips/dist/js/qm-trips.js - About 5 hrs to fix

                                      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/dist/js/qm-trips.js - About 4 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language