brynary/rack-bug

View on GitHub

Showing 86 of 86 total issues

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

Sizzle.selectors.filters.visible = function(elem){
    return elem.offsetWidth > 0 || elem.offsetHeight > 0;
};
Severity: Minor
Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 40 mins to fix
lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 2369..2371

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

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

Sizzle.selectors.filters.hidden = function(elem){
    return elem.offsetWidth === 0 || elem.offsetHeight === 0;
};
Severity: Minor
Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 40 mins to fix
lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 2373..2375

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

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 PSEUDO has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        PSEUDO: function(match, curLoop, inplace, result, not){
Severity: Minor
Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 35 mins to fix

    Method send_message_with_safe_check_with_rack_bug has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def send_message_with_safe_check_with_rack_bug(operation, message, db_name, log_message=nil, last_error_params=false)
    Severity: Minor
    Found in lib/rack/bug/panels/mongo_panel/mongo_extension.rb - About 35 mins to fix

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

          prop: function( elem, value, type, i, name ) {
      Severity: Minor
      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 35 mins to fix

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

                this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
        Severity: Minor
        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 35 mins to fix
        lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 4086..4086

        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

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

                this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
        Severity: Minor
        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 35 mins to fix
        lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 4071..4071

        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

        Avoid too many return statements within this function.
        Open

                    return attr === null ? undefined : attr;
        Severity: Major
        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return jQuery( document ).ready( selector );
          Severity: Major
          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                            return (elem.value || "").replace(/\r/g, "");
            Severity: Major
            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return this.each(function(){
                          if ( this.nodeType != 1 )
                              return;
              
                          if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
              Severity: Major
              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

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

                            top  = box.top  + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop  || body.scrollTop ) - clientTop,
                Severity: Minor
                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 30 mins to fix
                lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 4179..4179

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

                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

                Avoid too many return statements within this function.
                Open

                                return jQuery.attr( elem.style, "cssText", value );
                Severity: Major
                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
                                  (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
                                  "";
                  Severity: Major
                  Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                            return diff == 0;
                    Severity: Major
                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                              return ( diff % first == 0 && diff / first >= 0 );
                      Severity: Major
                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return this.setArray(jQuery.isArray( selector ) ?
                                    selector :
                                    jQuery.makeArray(selector));
                        Severity: Major
                        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return undefined;
                          Severity: Major
                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return elem[ name ];
                            Severity: Major
                            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                                      return true;
                              Severity: Major
                              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix
                                Severity
                                Category
                                Status
                                Source
                                Language