railsfrance/railsfrance.org

View on GitHub

Showing 228 of 228 total issues

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

            if(changeText && options.ticker){
                $autoControls.html($startContent).removeClass('stop').addClass('start');
                autoPlaying = false;
            }            
Severity: Major
Found in app/assets/javascripts/lib/jquery.bxSlider.js and 3 other locations - About 40 mins to fix
app/assets/javascripts/lib/jquery.bxSlider.js on lines 396..399
app/assets/javascripts/lib/jquery.bxSlider.js on lines 411..414
app/assets/javascripts/lib/jquery.bxSlider.js on lines 472..475

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

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

            $parent.hover(function() {
                if(autoPlaying){
                    base.stopTicker(false);
                }
            }, function() {
Severity: Minor
Found in app/assets/javascripts/lib/jquery.bxSlider.js and 1 other location - About 40 mins to fix
app/assets/javascripts/lib/jquery.bxSlider.js on lines 890..898

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

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(prevType == 'text'){
                $prevHtml.html(prevContent);
            }else{
                $prevHtml.html('<img src="'+prevContent+'" />');
            }
Severity: Minor
Found in app/assets/javascripts/lib/jquery.bxSlider.js and 1 other location - About 40 mins to fix
app/assets/javascripts/lib/jquery.bxSlider.js on lines 962..966

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

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

            if(changeText && options.autoControls){
                $autoControls.html($startContent).removeClass('stop').addClass('start');
                autoPlaying = false;
            }
Severity: Major
Found in app/assets/javascripts/lib/jquery.bxSlider.js and 3 other locations - About 40 mins to fix
app/assets/javascripts/lib/jquery.bxSlider.js on lines 411..414
app/assets/javascripts/lib/jquery.bxSlider.js on lines 426..429
app/assets/javascripts/lib/jquery.bxSlider.js on lines 472..475

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

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(nextType == 'text'){
                $nextHtml.html(nextContent);
            }else{
                $nextHtml.html('<img src="'+nextContent+'" />');
            }
Severity: Minor
Found in app/assets/javascripts/lib/jquery.bxSlider.js and 1 other location - About 40 mins to fix
app/assets/javascripts/lib/jquery.bxSlider.js on lines 968..972

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

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 ( !jQuery.support.opacity ) {
    jQuery.cssHooks.opacity = {
        get: function( elem, computed ) {
            // IE uses filters for opacity
            return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
Severity: Major
Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                    if ( (e.keyCode === 13 && !jQuery.nodeName( elem, "textarea" ) ) ||
                        (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
                        type === "select-multiple" ) {
                        testChange.call( this, e );
                    }
    Severity: Major
    Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

          if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
              return;
          }
      Severity: Major
      Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                } else if ( typeof value === "string" && !rnocache.test( value ) &&
                    (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
                    !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
        
                    value = value.replace(rxhtmlTag, "<$1></$2>");
        Severity: Major
        Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
                          Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
          
                      ret = Sizzle.find( parts.shift(), context, contextXML );
                      context = ret.expr ?
          Severity: Major
          Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

            if ( jQuery.expr && jQuery.expr.filters ) {
                jQuery.expr.filters.hidden = function( elem ) {
                    var width = elem.offsetWidth,
                        height = elem.offsetHeight;
            
            
            Severity: Major
            Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                      if ((hour < defaults.hourMin || hour > defaults.hourMax) || (minute < defaults.minuteMin || minute > defaults.minuteMax) || (second < defaults.secondMin || second > defaults.secondMax)) {
                          hour = defaults.hourMin;
                          minute = defaults.minuteMin;
                          second = defaults.secondMin;
                      }
              Severity: Major
              Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                        if ( s.crossDomain == null ) {
                            parts = rurl.exec( s.url.toLowerCase() );
                            s.crossDomain = !!( parts &&
                                ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
                                    ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
                Severity: Major
                Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

                  Function PSEUDO has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          PSEUDO: function( match, curLoop, inplace, result, not ) {
                  Severity: Minor
                  Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 35 mins to fix

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

                                        var elem = e.target,
                                            type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
                    Severity: Minor
                    Found in app/assets/javascripts/lib/jquery-1.6.4.js and 1 other location - About 35 mins to fix
                    app/assets/javascripts/lib/jquery-1.6.4.js on lines 3284..3285

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

                    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

                                for ( ; i < length; i++ ) {
                                    value = callback( elems[ i ], i, arg );
                    
                                    if ( value != null ) {
                                        ret[ ret.length ] = value;
                    Severity: Minor
                    Found in app/assets/javascripts/lib/jquery-1.6.4.js and 1 other location - About 35 mins to fix
                    app/assets/javascripts/lib/jquery-1.6.4.js on lines 780..786

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

                    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

                                        var elem = e.target,
                                            type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
                    Severity: Minor
                    Found in app/assets/javascripts/lib/jquery-1.6.4.js and 1 other location - About 35 mins to fix
                    app/assets/javascripts/lib/jquery-1.6.4.js on lines 3275..3276

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

                    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

                                for ( key in elems ) {
                                    value = callback( elems[ key ], key, arg );
                    
                                    if ( value != null ) {
                                        ret[ ret.length ] = value;
                    Severity: Minor
                    Found in app/assets/javascripts/lib/jquery-1.6.4.js and 1 other location - About 35 mins to fix
                    app/assets/javascripts/lib/jquery-1.6.4.js on lines 770..776

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

                    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

                                } else {
                                    jQuery('a[name=' + _input.attr('id') + ']', _replacement.parent()).removeClass(settings.checkedClass);
                                } // eof if()
                    Severity: Minor
                    Found in app/assets/javascripts/lib/jquery-checkbox-1.0.js and 1 other location - About 35 mins to fix
                    app/assets/javascripts/lib/jquery-checkbox-1.0.js on lines 48..50

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

                    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 (_input.prop('checked') == true) {
                                    jQuery('a[name=' + _input.attr('id') + ']', _replacement.parent()).addClass(settings.checkedClass);
                                } else {
                    Severity: Minor
                    Found in app/assets/javascripts/lib/jquery-checkbox-1.0.js and 1 other location - About 35 mins to fix
                    app/assets/javascripts/lib/jquery-checkbox-1.0.js on lines 50..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 46.

                    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

                    Severity
                    Category
                    Status
                    Source
                    Language