railsfrance/railsfrance.org

View on GitHub

Showing 228 of 228 total issues

Function domManip has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    domManip: function( args, table, callback ) {
        var results, first, fragment, parent,
            value = args[0],
            scripts = [];

Severity: Minor
Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

    Function ajaxHandleResponses has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function ajaxHandleResponses( s, jqXHR, responses ) {
    
        var contents = s.contents,
            dataTypes = s.dataTypes,
            responseFields = s.responseFields,
    Severity: Minor
    Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

      Function closest has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          closest: function( selectors, context ) {
              var ret = [], i, l, cur = this[0];
              
              // Array
              if ( jQuery.isArray( selectors ) ) {
      Severity: Minor
      Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

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

                CHILD: function( elem, match ) {
                    var type = match[1],
                        node = elem;
        
                    switch ( type ) {
        Severity: Minor
        Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

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

                  if ( jQuery.isFunction(text) ) {
                      return this.each(function(i) {
                          var self = jQuery( this );
          
                          self.text( text.call(this, i, self.text()) );
          Severity: Major
          Found in app/assets/javascripts/lib/jquery-1.6.4.js and 1 other location - About 1 hr to fix
          app/assets/javascripts/lib/jquery-1.6.4.js on lines 9004..9009

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

          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

                      event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
          Severity: Major
          Found in app/assets/javascripts/lib/jquery-1.6.4.js and 1 other location - About 1 hr to fix
          app/assets/javascripts/lib/jquery-1.6.4.js on lines 3059..3059

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

          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

                      event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
          Severity: Major
          Found in app/assets/javascripts/lib/jquery-1.6.4.js and 1 other location - About 1 hr to fix
          app/assets/javascripts/lib/jquery-1.6.4.js on lines 3058..3058

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

          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

                  if ( jQuery.isFunction( size ) ) {
                      return this.each(function( i ) {
                          var self = jQuery( this );
                          self[ type ]( size.call( this, i, self[ type ]() ) );
                      });
          Severity: Major
          Found in app/assets/javascripts/lib/jquery-1.6.4.js and 1 other location - About 1 hr to fix
          app/assets/javascripts/lib/jquery-1.6.4.js on lines 5563..5569

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

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

              step: function( gotoEnd ) {
                  var t = fxNow || createFxNow(),
                      done = true,
                      elem = this.elem,
                      options = this.options,
          Severity: Minor
          Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

            Function load has 44 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                load: function( url, params, callback ) {
                    if ( typeof url !== "string" && _load ) {
                        return _load.apply( this, arguments );
            
                    // Don't do a request if no elements are being requested
            Severity: Minor
            Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

              Function showPager has 43 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function showPager(type){
                          // sets up logic for finite multi slide shows
                          var pagerQty = $children.length;
                          // if we are moving more than one at a time and we have a finite loop
                          if(options.moveSlideQty > 1){
              Severity: Minor
              Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 1 hr to fix

                Function attr has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    attr: function( elem, name, value, pass ) {
                        var nType = elem.nodeType;
                        
                        // don't get/set attributes on text, comment and attribute nodes
                        if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
                Severity: Minor
                Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                  Function data has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      data: function( key, value ) {
                          var data = null;
                  
                          if ( typeof key === "undefined" ) {
                              if ( this.length ) {
                  Severity: Minor
                  Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                    Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        val: function( value ) {
                            var hooks, ret,
                                elem = this[0];
                            
                            if ( !arguments.length ) {
                    Severity: Minor
                    Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                      Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      jQuery.extend = jQuery.fn.extend = function() {
                          var options, name, src, copy, copyIsArray, clone,
                              target = arguments[0] || {},
                              i = 1,
                              length = arguments.length,
                      Severity: Minor
                      Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

                        Function goToSlide has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                this.goToSlide = function(number, stopAuto){
                                    if(!isWorking){
                                        isWorking = true;
                                        // set current slide to argument
                                        currentSlide = number;
                        Severity: Minor
                        Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 1 hr to fix

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

                                  if(tp_inst._defaults.minDateTime !== undefined && tp_inst._defaults.minDateTime instanceof Date)
                                      tp_inst._defaults.minDate = new Date(tp_inst._defaults.minDateTime.getTime());
                          Severity: Major
                          Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js and 2 other locations - About 1 hr to fix
                          app/assets/javascripts/lib/jquery-ui-timepicker-addon.js on lines 170..171
                          app/assets/javascripts/lib/jquery-ui-timepicker-addon.js on lines 172..173

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

                          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 3 locations. Consider refactoring.
                          Open

                                  if(tp_inst._defaults.maxDateTime !== undefined && tp_inst._defaults.maxDateTime instanceof Date)
                                      tp_inst._defaults.maxDate = new Date(tp_inst._defaults.maxDateTime.getTime());
                          Severity: Major
                          Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js and 2 other locations - About 1 hr to fix
                          app/assets/javascripts/lib/jquery-ui-timepicker-addon.js on lines 168..169
                          app/assets/javascripts/lib/jquery-ui-timepicker-addon.js on lines 170..171

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

                          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 3 locations. Consider refactoring.
                          Open

                                  if(tp_inst._defaults.maxDate !== undefined && tp_inst._defaults.maxDate instanceof Date)
                                      tp_inst._defaults.maxDateTime = new Date(tp_inst._defaults.maxDate.getTime());
                          Severity: Major
                          Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js and 2 other locations - About 1 hr to fix
                          app/assets/javascripts/lib/jquery-ui-timepicker-addon.js on lines 168..169
                          app/assets/javascripts/lib/jquery-ui-timepicker-addon.js on lines 172..173

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

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

                          jQuery.fn.checkbox = function(options) {
                              var defaults = {
                                  className: 'jquery-checkbox',
                                  checkedClass: 'jquery-checkbox-on'
                              };
                          Severity: Minor
                          Found in app/assets/javascripts/lib/jquery-checkbox-1.0.js - About 1 hr to fix
                            Severity
                            Category
                            Status
                            Source
                            Language