ochko/prudge

View on GitHub

Showing 206 of 206 total issues

Avoid deeply nested control flow statements.
Open

                        if ( !name.indexOf( "data-" ) ) {
                            name = jQuery.camelCase( name.substring(5) );

                            dataAttr( elem, name, data[ name ] );
                        }
Severity: Major
Found in app/assets/javascripts/jquery.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if ( !(unmatched[i] || setMatched[i]) ) {
                                    setMatched[i] = pop.call( results );
                                }
    Severity: Major
    Found in app/assets/javascripts/jquery.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          for ( conv2 in converters ) {
      
                              // If conv2 outputs current
                              tmp = conv2.split(" ");
                              if ( tmp[ 1 ] === current ) {
      Severity: Major
      Found in app/assets/javascripts/jquery.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if ( elem.sizset ) {
                                        return elem;
                                    }
        Severity: Major
        Found in app/assets/javascripts/jquery.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if ( ret[r] === ret[n] ) {
                                      ret.splice(n--, 1);
                                      break;
                                  }
          Severity: Major
          Found in app/assets/javascripts/jquery.js - About 45 mins to fix

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

                      this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
            Severity: Minor
            Found in app/assets/javascripts/bootstrap.js and 1 other location - About 45 mins to fix
            app/assets/javascripts/bootstrap.js on lines 1105..1105

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

            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.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
            Severity: Minor
            Found in app/assets/javascripts/bootstrap.js and 1 other location - About 45 mins to fix
            app/assets/javascripts/bootstrap.js on lines 1104..1104

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

            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.$element
                    .on('focus',    $.proxy(this.focus, this))
                    .on('blur',     $.proxy(this.blur, this))
            Severity: Minor
            Found in app/assets/javascripts/bootstrap.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/bootstrap.js on lines 294..296

            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

                $('#unwatch').click(function(e) {
                    $(this).hide();
                    $('#watch').show();
                });
            Severity: Minor
            Found in app/assets/javascripts/prudge.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/prudge.js on lines 83..86

            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

                this.options.pause == 'hover' && this.$element
                  .on('mouseenter', $.proxy(this.pause, this))
                  .on('mouseleave', $.proxy(this.cycle, this))
            Severity: Minor
            Found in app/assets/javascripts/bootstrap.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/bootstrap.js on lines 1998..2000

            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

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

              , destroy: function () {
                  this.hide().$element.off('.' + this.type).removeData(this.type)
                }
            Severity: Minor
            Found in app/assets/javascripts/bootstrap.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/bootstrap.js on lines 1361..1363

            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

                $('#watch').click(function(e) {
                    $(this).hide();
                    $('#unwatch').show();
                });
            Severity: Minor
            Found in app/assets/javascripts/prudge.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/prudge.js on lines 87..90

            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

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

              , destroy: function () {
                  this.hide().$element.off('.' + this.type).removeData(this.type)
                }
            Severity: Minor
            Found in app/assets/javascripts/bootstrap.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/bootstrap.js on lines 1480..1482

            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 ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
            
                                // Don't re-trigger an onFOO event when we call its FOO() method
                                old = elem[ ontype ];
            
            
            Severity: Major
            Found in app/assets/javascripts/jquery.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/jquery.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                        if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {
                            return;
                        }
                Severity: Major
                Found in app/assets/javascripts/jquery.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if ( matcher[ expando ] ) {
                                  // Find the next relative operator (if any) for proper handling
                                  j = ++i;
                                  for ( ; j < len; j++ ) {
                                      if ( Expr.relative[ tokens[j].type ] ) {
                  Severity: Major
                  Found in app/assets/javascripts/jquery.js - About 40 mins to fix

                    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/jquery.js - About 40 mins to fix

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

                      function Tween( elem, options, prop, end, easing ) {
                      Severity: Minor
                      Found in app/assets/javascripts/jquery.js - About 35 mins to fix

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

                            remove: function( elem, types, handler, selector, mappedTypes ) {
                        Severity: Minor
                        Found in app/assets/javascripts/jquery.js - About 35 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language