stevenocchipinti/dwi-visualiser

View on GitHub

Showing 319 of 620 total issues

Avoid deeply nested control flow statements.
Open

                            if (val < ymin)
                                ymin = val;
Severity: Major
Found in public/lib/jquery.flot.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if (lookAhead("'"))
                                    output += "'";
                                else
                                    literal = true;
    Severity: Major
    Found in public/lib/jquery-ui.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              switch (col) {
                                  case 0: calender += ' ui-datepicker-group-first';
                                      cornerClass = ' ui-corner-' + (isRTL ? 'right' : 'left'); break;
                                  case numMonths[1]-1: calender += ' ui-datepicker-group-last';
                                      cornerClass = ' ui-corner-' + (isRTL ? 'left' : 'right'); break;
      Severity: Major
      Found in public/lib/jquery-ui.js - About 45 mins to fix

        Consider simplifying this complex logical expression.
        Open

                            if (v < axis.min || v > axis.max
                                // skip those lying on the axes if we got a border
                                || (t == "full" && bw > 0
                                    && (v == axis.min || v == axis.max)))
                                continue;
        Severity: Major
        Found in public/lib/jquery.flot.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                          if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
                              (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
                              type === "select-multiple" ) {
                              testChange.call( this, e );
                          }
          Severity: Major
          Found in public/lib/jquery.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 public/lib/jquery.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 public/lib/jquery.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 public/lib/jquery.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if ( (!id || (pvt && id && !cache[ id ][ internalKey ])) && getByName && data === undefined ) {
                              return;
                          }
                  Severity: Major
                  Found in public/lib/jquery.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 public/lib/jquery.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if ( (!special._default || special._default.call( elem, event ) === false) &&
                                      !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
                      
                                      try {
                                          if ( target[ targetType ] ) {
                      Severity: Major
                      Found in public/lib/jquery.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                if ( !s.crossDomain ) {
                                    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 public/lib/jquery.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                  if (inst == $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&
                                          // #6694 - don't focus the input if it's already focused
                                          // this breaks the change event in IE
                                          inst.input.is(':visible') && !inst.input.is(':disabled') && inst.input[0] != document.activeElement)
                                      inst.input.focus();
                          Severity: Major
                          Found in public/lib/jquery-ui.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                        if ( instances.length !== 0 && instances[ instances.length - 1 ] === $el &&
                                            dialog.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
                                            event.keyCode === $.ui.keyCode.ESCAPE ) {
                            
                                            dialog.close( event );
                            Severity: Major
                            Found in public/lib/jquery-ui.js - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                          if ( ( this.options.values.length === 2 && this.options.range === true ) &&
                                                  ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
                                              ) {
                                              newVal = otherVal;
                                          }
                              Severity: Major
                              Found in public/lib/jquery-ui.js - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                            if(
                                                inst.options.greedy
                                                && !inst.options.disabled
                                                && inst.options.scope == draggable.options.scope
                                                && inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element))
                                Severity: Major
                                Found in public/lib/jquery-ui.js - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                      if ( o.mode === "toggle" && mode === "show" ) {
                                          el.from = o.to || zero;
                                          el.to = o.from || original;
                                      } else {
                                          el.from = o.from || ( mode === "show" ? zero : original );
                                  Severity: Major
                                  Found in public/lib/jquery-ui.js - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                    if ( $.uiBackCompat !== false ) {
                                    
                                        // helper method for a lot of the back compat extensions
                                        $.ui.tabs.prototype._ui = function( tab, panel ) {
                                            return {
                                    Severity: Major
                                    Found in public/lib/jquery-ui.js - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                      if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
                                                          curElem = hook === "backgroundColor" ? elem.parentNode : elem;
                                                          while (
                                                              (backgroundColor === "" || backgroundColor === "transparent") &&
                                                              curElem && curElem.style
                                      Severity: Major
                                      Found in public/lib/jquery-ui.js - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if ( tab.hasClass( "ui-state-disabled" ) ||
                                                        // tab is already loading
                                                        tab.hasClass( "ui-tabs-loading" ) ||
                                                        // can't switch durning an animation
                                                        this.running ||
                                        Severity: Major
                                        Found in public/lib/jquery-ui.js - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language