adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Avoid deeply nested control flow statements.
Open

                    if (!_parseRule(level === undefined ? 0 : level) && level > 0) {
                        return false;
                    }
Severity: Major
Found in src/language/CSSUtils.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if (isPreprocessorDoc) {
                            if (!skipPrevSibling && !/^\s*@/.test(selector)) {
                                selectorArray.unshift(selector);
                            }
                            if (skipPrevSibling) {
    Severity: Major
    Found in src/language/CSSUtils.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if (c === "!") {
                              this._state = BEFORE_DECLARATION;
                              this._startSection(1);
                          } else if (c === "?") {
                              this._state = IN_PROCESSING_INSTRUCTION;
      Severity: Major
      Found in src/language/HTMLTokenizer.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if (!isPreprocessorDoc && _hasNonWhitespace(ctx.token.string)) {
                                foundChars = true;
                            }
        Severity: Major
        Found in src/language/CSSUtils.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              } else if (ctx.token.string === "}" || ctx.token.string === ";") {
                                  break;
                              }
          Severity: Major
          Found in src/language/CSSUtils.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (isPreprocessorDoc && !/^\s*@/.test(selector)) {
                                        selectorArray.push(selector);
                                    }
            Severity: Major
            Found in src/language/CSSUtils.js - About 45 mins to fix

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

                  init: function( elem, options, prop, end, easing, unit ) {
              Severity: Minor
              Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                if (c === "/") {
                                    this._emitToken("opentagname");
                                    this._emitSpecialToken("selfclosingtag", this._index + 2, _clonePos(this._indexPos, 2));
                                    this._state = AFTER_SELFCLOSE_SLASH;
                                } else if (c === ">") {
                Severity: Major
                Found in src/language/HTMLTokenizer.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if (offset === 0) {
                                              TokenUtils.moveNextToken(ctx);
                                          }
                  Severity: Major
                  Found in src/language/HTMLUtils.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        if (token.type === "selfclosingtag" && stack.length && stack[stack.length - 1] === this.currentTag) {
                                            // This must have been a self-closing tag that we didn't identify as a void element
                                            // (e.g. an SVG tag). Pop it off the stack as if we had encountered its close tag.
                                            closeTag(token.end, token.endPos);
                                        } else {
                    Severity: Major
                    Found in src/language/HTMLSimpleDOM.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if (forwardCtx.token.string.indexOf("<") === 0) {
                                                  break;
                                              }
                      Severity: Major
                      Found in src/language/HTMLUtils.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if (ctx.token.string === "</") {
                                                    tokenType = CLOSING_TAG;
                                                    offset -= 2;
                                                } else {
                                                    offset = 0;
                        Severity: Major
                        Found in src/language/HTMLUtils.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      } else if (this._state === BEFORE_CLOSING_TAG_NAME) {
                                          if (c === ">") {
                                              this._state = TEXT;
                                          } else if (this._special > 0) {
                                              if (c === "s" || c === "S") {
                          Severity: Major
                          Found in src/language/HTMLTokenizer.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                            if (!voidElements.hasOwnProperty(closeTagName)) {
                                                // Find the topmost item on the stack that matches. If we can't find one, assume
                                                // this is just a dangling closing tag and ignore it.
                                                var i;
                                                for (i = stack.length - 1; i >= 0; i--) {
                            Severity: Major
                            Found in src/language/HTMLSimpleDOM.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if (ctxPrev.token.string === ":") {
                                                      hasColon = true;
                                                  } else if (ctxPrev.token.string === ",") {
                                                      hasComma = true;
                                                  } else if (ctxPrev.token.string === "[") {
                              Severity: Major
                              Found in src/language/JSONUtils.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                            } else if (token.type === "attribname") {
                                                attributeName = token.contents.toLowerCase();
                                                // Set the value to the empty string in case this is an empty attribute. If it's not,
                                                // it will get overwritten by the attribvalue later.
                                                this.currentTag.attributes[attributeName] = "";
                                Severity: Major
                                Found in src/language/HTMLSimpleDOM.js - About 45 mins to fix

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

                                  function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                  Severity: Minor
                                  Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if (state.state === "top") {
                                                                break;
                                                            }
                                    Severity: Major
                                    Found in src/language/CSSUtils.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if (!addElementDelete()) {
                                                                  // Since we're not deleting and these elements don't match up, we
                                                                  // must have a new element. Add an elementInsert (and log a problem
                                                                  // if no insert works.)
                                                                  if (!addElementInsert()) {
                                      Severity: Major
                                      Found in src/language/HTMLDOMDiff.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                        } else if (!hasComma) {
                                                            return null;
                                                        }
                                        Severity: Major
                                        Found in src/language/JSONUtils.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language