adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

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

    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 (hints[i].toLowerCase().indexOf(query) === 0) {
                                    foundPrefix = true;
                                    break;
                                }
        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 (!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 isOver has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  isOver: function( y, x, top, left, height, width ) {

                Avoid deeply nested control flow statements.
                Open

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

                  Avoid deeply nested control flow statements.
                  Open

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

                    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;

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

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

                        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 ( eraName === cal.eras[i].name.toLowerCase() ) {
                                                          era = i;
                                                          break;
                                                      }

                            Avoid deeply nested control flow statements.
                            Open

                                                if (typeof b !== 'number' || !isFinite(b) || b <= 0 ||
                                                        Math.floor(b) !== b) {
                                                    error("Expected a small integer and instead saw '{a}'.",
                                                            v, v.value);
                                                }

                              Avoid deeply nested control flow statements.
                              Open

                                                      if (option.newcap && (i < 'A' || i > 'Z')) {
                                                          warning("A constructor name should start with an uppercase letter.",
                                                              token);
                                                      }

                                Avoid deeply nested control flow statements.
                                Open

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

                                  Avoid deeply nested control flow statements.
                                  Open

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

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

                                            CLASS: function( match, curLoop, inplace, result, not, isXML ) {

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      if (i >= 0) {
                                                                          break;
                                                                      }

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if (option.undef) {
                                                                    // Attempting to subscript a null reference will throw an
                                                                    // error, even within the typeof and delete operators
                                                                    if (!(anonname === 'typeof' || anonname === 'delete') ||
                                                                        (nexttoken &&
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language