Hirse/brackets-outline-list

View on GitHub

Showing 905 of 905 total issues

Avoid deeply nested control flow statements.
Open

          if (this.tryMatch('%=')) {
            this.aspTagMode = true;
            this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO, 3).nextINITIAL();
            break;
          } else {
Severity: Major
Found in thirdparty/php-parser.js - About 45 mins to fix

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

    var Foreach = Statement.extends(function Foreach(source, key, value, body, shortForm, location) {
    Severity: Minor
    Found in thirdparty/php-parser.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

              if (lLevel && rLevel && rLevel <= lLevel) {
                buffer = result.right;
                result.right = result.right.test;
                buffer.test = this.resolvePrecedence(result);
                result = buffer;
      Severity: Major
      Found in thirdparty/php-parser.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                  } else if (this.is_NUM()) {
                    this.consume_LNUM();
                    return this.tok.T_DNUMBER;
                  } else {
                    this.unput(ch ? 2 : 1);
        Severity: Major
        Found in thirdparty/php-parser.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                        if (value[value.length-2] === '\r') {
                          // windows style
                          value = value.substring(0, value.length - 2);
                        } else {
                          // linux style
          Severity: Major
          Found in thirdparty/php-parser.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                      if (this.yytext.length > this.offset - yyoffset + 2) {
                        this.appendToken(next, this.offset - yyoffset + 2);
                        this.unput(this.offset - yyoffset + 2);
                        return this.tok.T_ENCAPSED_AND_WHITESPACE;
                      } else {
            Severity: Major
            Found in thirdparty/php-parser.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          } else if (lastCh === '\r') {
                            // mac style
                            value = value.substring(0, value.length - 1);
                          }
              Severity: Major
              Found in thirdparty/php-parser.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            if (ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r') {
                              this.unput(1).appendToken(this.tok.T_OPEN_TAG, 6).nextINITIAL();
                              break;
                            }
                Severity: Major
                Found in thirdparty/php-parser.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                            if (this.yytext.length > 2) {
                              this.appendToken(this.tok.T_CURLY_OPEN, 1);
                              this.unput(2);
                              return this.tok.T_ENCAPSED_AND_WHITESPACE;
                            } else {
                  Severity: Major
                  Found in thirdparty/php-parser.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                  } else if (this.token === '{') {
                                    var expr = this.next().read_expr();
                                    this.expect('}') && this.next();
                                    what = this.node('encapsed')(
                                      [what, expr],
                    Severity: Major
                    Found in thirdparty/php-parser.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                              } else if (this.is_LABEL_START()) {
                                // start of $var...
                                var yyoffset = this.offset;
                                var next = this.consume_VARIABLE();
                                if (this.yytext.length > this.offset - yyoffset + 2) {
                      Severity: Major
                      Found in thirdparty/php-parser.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                if (ch === '$') {
                                  // start of {$...
                                  this.begin('ST_IN_SCRIPTING');
                                  if (this.yytext.length > 2) {
                                    this.appendToken(this.tok.T_CURLY_OPEN, 1);
                        Severity: Major
                        Found in thirdparty/php-parser.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                    if (this.yytext.length > this.offset - yyoffset + 2) {
                                      this.appendToken(next, this.offset - yyoffset + 2);
                                      this.unput(this.offset - yyoffset + 2);
                                      return this.tok.T_ENCAPSED_AND_WHITESPACE;
                                    } else {
                          Severity: Major
                          Found in thirdparty/php-parser.js - About 45 mins to fix

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

                                function _createListEntry(name, args, type, level, line, ch) {
                            Severity: Minor
                            Found in src/languages/JavaScript.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                        if (this.yytext.length > 2) {
                                          this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES, 2);
                                          this.unput(2);
                                          return this.tok.T_ENCAPSED_AND_WHITESPACE;
                                        }else {
                              Severity: Major
                              Found in thirdparty/php-parser.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                        if (c === '\r') {
                                          c = this.yytext[++i];
                                          this.yyprevcol = this.yylloc.last_column;
                                          this.yylloc.last_line ++;
                                          this.yylloc.last_column = 0;
                                Severity: Major
                                Found in thirdparty/php-parser.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                          if (ch) this.unput(1);
                                  Severity: Major
                                  Found in thirdparty/php-parser.js - About 45 mins to fix

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

                                    var fn = Declaration.extends(function _Function(name, args, byref, type, nullable, location) {
                                    Severity: Minor
                                    Found in thirdparty/php-parser.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                  if (this.is_NUM()) {
                                                    this.consume_LNUM();
                                                    return this.tok.T_DNUMBER;
                                                  } else {
                                                    this.unput(ch ? 3 : 2);
                                      Severity: Major
                                      Found in thirdparty/php-parser.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                  if (this.yytext.length > 2) {
                                                    this.appendToken(this.tok.T_CURLY_OPEN, 1);
                                                    this.unput(2);
                                                    return this.tok.T_ENCAPSED_AND_WHITESPACE;
                                                  } else {
                                        Severity: Major
                                        Found in thirdparty/php-parser.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language