adobe/brackets

View on GitHub

Showing 1,485 of 3,294 total issues

Avoid deeply nested control flow statements.
Open

                        if (tag[0] === "#" || tag[0] === "~" || tag[0] === "^") {
                            tagStack.push(tag.substr(1));
                        } else if (tag[0] === "/" &&
                                   (_.last(tagStack) === tag.substr(1) || _.last(tagStack) === "*" + tag.substr(1))) {
                            tagStack.pop();
Severity: Major
Found in src/extensions/default/CodeFolding/foldhelpers/handlebarsFold.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                    if (!hidden) {
                                        shouldHide.push(i); // lines below end line should be hidden
                                    }
    Severity: Major
    Found in src/extensions/default/JavaScriptQuickEdit/unittests.js - About 45 mins to fix

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

          function SymbolInformation(label, fullPath, selectionRange, type, scope, isDocumentSymbolRequest) {
      Severity: Minor
      Found in src/extensions/default/PhpTooling/PHPSymbolProviders.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (range) {
                                    mark = marker(opts.indicatorFolded);
                                } else {
                                    cm.findMarksAt(pos).filter(isFold)
                                        .forEach(clear);
        Severity: Major
        Found in src/extensions/default/CodeFolding/foldhelpers/foldgutter.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if (self.cachedHints.deferred &&
                                              self.cachedHints.deferred.state() === "pending") {
                                          self.cachedHints.deferred.reject();
                                          self.cachedHints.deferred = null;
                                      }
          Severity: Major
          Found in src/extensions/default/UrlCodeHints/main.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (range && range.to.line - range.from.line >= minFoldSize) {
                                        mark = marker(opts.indicatorOpen);
                                    }
            Severity: Major
            Found in src/extensions/default/CodeFolding/foldhelpers/foldgutter.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if (hints[i].toLowerCase().indexOf(query) === 0) {
                                          foundPrefix = true;
                                          break;
                                      }
              Severity: Major
              Found in src/extensions/default/UrlCodeHints/main.js - About 45 mins to fix

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

                    function error(m, t, a, b, c, d) {

                  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;

                    Avoid deeply nested control flow statements.
                    Open

                                                if (lookAhead("'"))
                                                    output += "'";
                                                else
                                                    literal = true;

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

                          function warning(m, t, a, b, c, d) {

                        Avoid deeply nested control flow statements.
                        Open

                                                        if (jsonmode) {
                                                            warningAt("Avoid \\v.", line, character);
                                                        }

                          Avoid deeply nested control flow statements.
                          Open

                                              for (i = 0; i < k.length; i += 1) {
                                                  predefined[k[i]] = !!a[k[i]];
                                              }

                            Avoid deeply nested control flow statements.
                            Open

                                                    if (data.member[k] === 1) {
                                                        n = '<i>' + n + '</i>';
                                                    }

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

                              function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {

                                Avoid deeply nested control flow statements.
                                Open

                                                } else if (t.value === 'maxlen' && (o === '/*jshint' || o === '/*jslint')) {
                                                    b = +v.value;
                                                    if (typeof b !== 'number' || !isFinite(b) || b <= 0 ||
                                                            Math.floor(b) !== b) {
                                                        error("Expected a small integer and instead saw '{a}'.",

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if (left.value === 'Math') {
                                                              warning("Math is not a function.", left);
                                                          } else if (option.newcap) {
                                                              warning(
                                  "Missing 'new' prefix when invoking a constructor.", left);

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( date ) {
                                                            break;
                                                        }

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      if (!nextLine()) {
                                                                          errorAt("Unclosed comment.", line, character);
                                                                      }

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if (l + n.length > 72) {
                                                                    o.push(m + '<br>');
                                                                    m = '    ';
                                                                    l = 1;
                                                                }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language