adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Avoid deeply nested control flow statements.
Open

                        if ( (elem = matcherOut[i]) ) {
                            // Restore matcherIn since elem is not yet a final match
                            temp.push( (matcherIn[i] = elem) );
                        }
Severity: Major
Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if ( !selector ) {
                            push.apply( results, seed );
                            return results;
                        }
    Severity: Major
    Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
                                  cur = cur.replace( " " + clazz + " ", " " );
                              }
      Severity: Major
      Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if ( (event.result = ret) === false ) {
                                    event.preventDefault();
                                    event.stopPropagation();
                                }
        Severity: Major
        Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  for ( type in data.events ) {
                                      if ( special[ type ] ) {
                                          jQuery.event.remove( elem, type );
          
                                      // This is a shortcut to avoid jQuery.event.remove's overhead
          Severity: Major
          Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                      if (options.debug)
                        console.error('globstar swallow a segment, and continue')
            Severity: Major
            Found in src/thirdparty/globmatch.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 src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                    if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
                                                        return false;
                                                    }
                Severity: Major
                Found in src/thirdparty/jquery-2.1.3.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 src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                    } else if ( copy !== undefined ) {
                                        target[ name ] = copy;
                                    }
                    Severity: Major
                    Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                if (options.debug)
                                  console.error('globstar found match!', fr, fl, swallowee)
                      Severity: Major
                      Found in src/thirdparty/globmatch.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if ( Expr.relative[ tokens[j].type ] ) {
                                                break;
                                            }
                        Severity: Major
                        Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                          if (_hasButton(this, DIALOG_BTN_DONTSAVE)) {
                                              buttonId = DIALOG_BTN_DONTSAVE;
                                          }
                          Severity: Major
                          Found in src/widgets/Dialogs.js - About 45 mins to fix

                            Function addIndicator has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                function addIndicator(id, indicator, visible, style, tooltip, insertBefore) {
                            Severity: Minor
                            Found in src/widgets/StatusBar.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                              if (this._highlightIndex === null || this._highlightIndex === 0) {
                                                  this._highlightIndex = this._displayedResults.length - 1;
                                              } else {
                                                  this._highlightIndex--;
                                              }
                              Severity: Major
                              Found in src/search/QuickSearchField.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                            } else if (e.metaKey && (e.which === KeyEvent.DOM_VK_PERIOD)) {
                                                buttonId = DIALOG_BTN_CANCEL;
                                            }
                                Severity: Major
                                Found in src/widgets/Dialogs.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                  if (_hasButton(this, DIALOG_BTN_DONTSAVE)) {
                                                      buttonId = DIALOG_BTN_DONTSAVE;
                                                  }
                                  Severity: Major
                                  Found in src/widgets/Dialogs.js - About 45 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if (!(event.ctrlKey || event.altKey || event.metaKey) &&
                                                    (event.keyCode === KeyEvent.DOM_VK_ENTER ||
                                                     event.keyCode === KeyEvent.DOM_VK_RETURN ||
                                                     event.keyCode === KeyEvent.DOM_VK_TAB)) {
                                                lastChar = String.fromCharCode(event.keyCode);
                                    Severity: Major
                                    Found in src/editor/CodeHintManager.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();

                                        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
                                          Category
                                          Status
                                          Source
                                          Language