civio/quienmanda.es

View on GitHub

Showing 375 of 375 total issues

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

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

                this.redo = function() {
                  var item = self.reverted.pop();
              
                  if (item) {
                    self.done.push(item);
              Severity: Major
              Found in app/assets/javascripts/viz/network-history.js and 1 other location - About 5 hrs to fix
              app/assets/javascripts/viz/network-history.js on lines 32..52

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

              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

                this.undo = function() {
                  var item = self.done.pop();
              
                  if (item) {
                    self.reverted.push(item);
              Severity: Major
              Found in app/assets/javascripts/viz/network-history.js and 1 other location - About 5 hrs to fix
              app/assets/javascripts/viz/network-history.js on lines 54..74

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

              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

              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

                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

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

                    proto.addListener = function addListener(evt, listener) {
                      var listeners = this.getListenersAsObject(evt);
                      var listenerIsWrapped = typeof listener === 'object';
                      var key;
                  
                  
                  Severity: Major
                  Found in app/assets/javascripts/jquery.imagesloaded.js and 1 other location - About 5 hrs to fix
                  app/assets/javascripts/packery.pkgd.js on lines 842..857

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

                  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

                      proto.addListener = function addListener(evt, listener) {
                          var listeners = this.getListenersAsObject(evt);
                          var listenerIsWrapped = typeof listener === 'object';
                          var key;
                  
                  
                  Severity: Major
                  Found in app/assets/javascripts/packery.pkgd.js and 1 other location - About 5 hrs to fix
                  app/assets/javascripts/jquery.imagesloaded.js on lines 125..140

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

                  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

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

                  if ( docElem.removeEventListener ) {
                    unbind = function( obj, type, fn ) {
                      obj.removeEventListener( type, fn, false );
                    };
                  } else if ( docElem.detachEvent ) {
                  Severity: Major
                  Found in app/assets/javascripts/jquery.imagesloaded.js and 1 other location - About 4 hrs to fix
                  app/assets/javascripts/packery.pkgd.js on lines 594..608

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

                  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

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

                  if ( docElem.removeEventListener ) {
                    unbind = function( obj, type, fn ) {
                      obj.removeEventListener( type, fn, false );
                    };
                  } else if ( docElem.detachEvent ) {
                  Severity: Major
                  Found in app/assets/javascripts/packery.pkgd.js and 1 other location - About 4 hrs to fix
                  app/assets/javascripts/jquery.imagesloaded.js on lines 487..501

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

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

                    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

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

                          proto.removeListener = function removeListener(evt, listener) {
                            var listeners = this.getListenersAsObject(evt);
                            var index;
                            var key;
                        
                        
                        Severity: Major
                        Found in app/assets/javascripts/jquery.imagesloaded.js and 1 other location - About 4 hrs to fix
                        app/assets/javascripts/packery.pkgd.js on lines 917..933

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

                        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

                            proto.removeListener = function removeListener(evt, listener) {
                                var listeners = this.getListenersAsObject(evt);
                                var index;
                                var key;
                        
                        
                        Severity: Major
                        Found in app/assets/javascripts/packery.pkgd.js and 1 other location - About 4 hrs to fix
                        app/assets/javascripts/jquery.imagesloaded.js on lines 200..216

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

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