cipele46/cipele46-web

View on GitHub

Showing 215 of 215 total issues

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

        if ( jQuery.isFunction( html ) ) {
            return this.each(function(i) {
                jQuery(this).wrapInner( html.call(this, i) );
            });
        }
Severity: Major
Found in public/js/jquery.js and 1 other location - About 1 hr to fix
public/js/jquery.js on lines 5699..5703

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

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

    off: function( types, selector, fn ) {
        var handleObj, type;
        if ( types && types.preventDefault && types.handleObj ) {
            // ( event )  dispatched jQuery.Event
            handleObj = types.handleObj;
Severity: Minor
Found in public/js/jquery.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

    if(_43==="length"){
    return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
    }else{
    return false;
    }
    Severity: Major
    Found in public/js/css3-mediaqueries.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

      if(_43==="length"){
      return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
      }else{
      return false;
      }
      Severity: Major
      Found in public/js/css3-mediaqueries.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                        if ( unit !== "px" && start ) {
                            // Iteratively approximate from a nonzero starting point
                            // Prefer the current property, because this process will be trivial if it uses the same units
                            // Fallback to end or a simple constant
                            start = jQuery.css( tween.elem, prop, true ) || end || 1;
        Severity: Major
        Found in public/js/jquery.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

          if(_43==="absolute"){
          return ((min&&_48>=_44)||(max&&_48<_44)||(!min&&!max&&_48===_44));
          }else{
          return false;
          }
          Severity: Major
          Found in public/js/css3-mediaqueries.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

            if ( jQuery.expr && jQuery.expr.filters ) {
                jQuery.expr.filters.hidden = function( elem ) {
                    return ( elem.offsetWidth === 0 && elem.offsetHeight === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || curCSS( elem, "display" )) === "none");
                };
            
            Severity: Major
            Found in public/js/jquery.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

              if(_43==="length"){
              return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
              }else{
              return false;
              }
              Severity: Major
              Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                if(_43==="absolute"){
                return ((min&&_49>=_44)||(max&&_49<_44)||(!min&&!max&&_49===_44));
                }else{
                return false;
                }
                Severity: Major
                Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                                  if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
                  
                                      event.data = handleObj.data;
                                      event.handleObj = handleObj;
                  
                  Severity: Major
                  Found in public/js/jquery.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                    if(!r.status&&location.protocol==="file:"||(r.status>=200&&r.status<300)||r.status===304||navigator.userAgent.indexOf("Safari")>-1&&typeof r.status==="undefined"){
                    _e(r.responseText);
                    }else{
                    _f();
                    }
                    Severity: Major
                    Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                      if(_43==="length"){
                      return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
                      }else{
                      return false;
                      }
                      Severity: Major
                      Found in public/js/css3-mediaqueries.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                        if(_43==="resolution"){
                        return ((min&&res>=_44)||(max&&res<_44)||(!min&&!max&&res===_44));
                        }else{
                        return false;
                        }
                        Severity: Major
                        Found in public/js/css3-mediaqueries.js - About 1 hr to fix

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

                          for(var i=0;i<qts.length;i++){
                          mqs[mqs.length]=_13.mediaQuery(qts[i],o);
                          }
                          Severity: Major
                          Found in public/js/css3-mediaqueries.js and 1 other location - About 1 hr to fix
                          public/js/css3-mediaqueries.js on lines 208..210

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

                          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(var i=0;i<dts.length;i++){
                          ds[ds.length]=_13.declaration(dts[i],o);
                          }
                          Severity: Major
                          Found in public/js/css3-mediaqueries.js and 1 other location - About 1 hr to fix
                          public/js/css3-mediaqueries.js on lines 145..147

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

                          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

                                      while ( i-- ) {
                                          if ( (elem = postFilterIn[i]) ) {
                                              matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
                                          }
                                      }
                          Severity: Minor
                          Found in public/js/jquery.js and 1 other location - About 55 mins to fix
                          public/js/jquery.js on lines 4891..4895

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

                          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

                                      while ( i-- ) {
                                          if ( (elem = matcherOut[i]) ) {
                                              seed[ preMap[i] ] = !(results[ preMap[i] ] = elem);
                                          }
                                      }
                          Severity: Minor
                          Found in public/js/jquery.js and 1 other location - About 55 mins to fix
                          public/js/jquery.js on lines 4880..4884

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

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

                              access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
                          Severity: Major
                          Found in public/js/jquery.js - About 50 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                                                    contains( context, elem ) && elem.id === m ) {
                                                    results.push( elem );
                                                    return results;
                                                }
                            Severity: Major
                            Found in public/js/jquery.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                          if ( elem.sizset ) {
                                                              return elem;
                                                          }
                              Severity: Major
                              Found in public/js/jquery.js - About 45 mins to fix
                                Severity
                                Category
                                Status
                                Source
                                Language