Showing 193 of 398 total issues

Function parseFunctionExpression has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        Parser.prototype.parseFunctionExpression = function () {
            var node = this.createNode();
            this.expectKeyword('function');
            var isGenerator = this.match('*');
            if (isGenerator) {
Severity: Minor
Found in dist/csp.tmpl.js - About 1 hr to fix

    Function parseFunctionDeclaration has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            Parser.prototype.parseFunctionDeclaration = function (identifierIsOptional) {
                var node = this.createNode();
                this.expectKeyword('function');
                var isGenerator = this.match('*');
                if (isGenerator) {
    Severity: Minor
    Found in dist/csp.tmpl.js - About 1 hr to fix

      Function reinterpretAsCoverFormalsList has 48 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              Parser.prototype.reinterpretAsCoverFormalsList = function (expr) {
                  var params = [expr];
                  var options;
                  switch (expr.type) {
                      case syntax_1.Syntax.Identifier:
      Severity: Minor
      Found in dist/csp.tmpl.js - About 1 hr to fix

        Function parseLeftHandSideExpressionAllowCall has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                Parser.prototype.parseLeftHandSideExpressionAllowCall = function () {
                    var startToken = this.lookahead;
                    var previousAllowIn = this.context.allowIn;
                    this.context.allowIn = true;
                    var expr;
        Severity: Minor
        Found in dist/csp.tmpl.js - About 1 hr to fix

          Function scanXHTMLEntity has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  JSXParser.prototype.scanXHTMLEntity = function (quote) {
                      var result = '&';
                      var valid = true;
                      var terminated = false;
                      var numeric = false;
          Severity: Minor
          Found in dist/csp.tmpl.js - About 1 hr to fix

            Function parseImportDeclaration has 44 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    Parser.prototype.parseImportDeclaration = function () {
                        if (this.context.inFunctionBody) {
                            this.throwError(messages_1.Messages.IllegalImportDeclaration);
                        }
                        var node = this.createNode();
            Severity: Minor
            Found in dist/csp.tmpl.js - About 1 hr to fix

              Function parseBinaryExpression has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      Parser.prototype.parseBinaryExpression = function () {
                          var startToken = this.lookahead;
                          var expr = this.inheritCoverGrammar(this.parseExponentiationExpression);
                          var token = this.lookahead;
                          var prec = this.binaryPrecedence(token);
              Severity: Minor
              Found in dist/csp.tmpl.js - About 1 hr to fix

                Function scanRegExpBody has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        Scanner.prototype.scanRegExpBody = function () {
                            var ch = this.source[this.index];
                            assert_1.assert(ch === '/', 'Regular expression literal must start with a slash');
                            var str = this.source[this.index++];
                            var classMarker = false;
                Severity: Minor
                Found in dist/csp.tmpl.js - About 1 hr to fix

                  Function scanRegExpFlags has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          Scanner.prototype.scanRegExpFlags = function () {
                              var str = '';
                              var flags = '';
                              while (!this.eof()) {
                                  var ch = this.source[this.index];
                  Severity: Minor
                  Found in dist/csp.tmpl.js - About 1 hr to fix

                    Function _parseExpr has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function _parseExpr (expr, asText, qstr) {
                    
                        expr = expr
                          .replace(/\s+/g, ' ').trim()
                          .replace(/\ ?([[\({},?\.:])\ ?/g, '$1')
                    Severity: Minor
                    Found in dist/es6.tmpl.js - About 1 hr to fix

                      Function parse has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function parse(code, options, delegate) {
                              var commentHandler = null;
                              var proxyDelegate = function (node, metadata) {
                                  if (delegate) {
                                      delegate(node, metadata);
                      Severity: Minor
                      Found in dist/csp.tmpl.js - About 1 hr to fix

                        Function _parseExpr has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function _parseExpr (expr, asText, qstr) {
                        
                            expr = expr
                              .replace(/\s+/g, ' ').trim()
                              .replace(/\ ?([[\({},?\.:])\ ?/g, '$1');
                        Severity: Minor
                        Found in dist/csp.tmpl.js - About 1 hr to fix

                          Function _parseExpr has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function _parseExpr (expr, asText, qstr) {
                          
                                expr = expr
                                  .replace(/\s+/g, ' ').trim()
                                  .replace(/\ ?([[\({},?\.:])\ ?/g, '$1')
                          Severity: Minor
                          Found in dist/tmpl.js - About 1 hr to fix

                            Function _parseExpr has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function _parseExpr (expr, asText, qstr) {
                            
                                // Non-empty quoted strings and literal regexes are hidden at this point.
                                //
                                // Now, this function converts whitespace into compacted spaces and trims
                            Severity: Minor
                            Found in src/tmpl.js - About 1 hr to fix

                              Function parseStatementListItem has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      Parser.prototype.parseStatementListItem = function () {
                                          var statement = null;
                                          this.context.isAssignmentTarget = true;
                                          this.context.isBindingElement = true;
                                          if (this.lookahead.type === token_1.Token.Keyword) {
                              Severity: Minor
                              Found in dist/csp.tmpl.js - About 1 hr to fix

                                Function lex has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        Scanner.prototype.lex = function () {
                                            if (this.eof()) {
                                                return {
                                                    type: token_1.Token.EOF,
                                                    lineNumber: this.lineNumber,
                                Severity: Minor
                                Found in dist/csp.tmpl.js - About 1 hr to fix

                                  Function unexpectedTokenError has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          Parser.prototype.unexpectedTokenError = function (token, message) {
                                              var msg = message || messages_1.Messages.UnexpectedToken;
                                              var value;
                                              if (token) {
                                                  if (!message) {
                                  Severity: Minor
                                  Found in dist/csp.tmpl.js - About 1 hr to fix

                                    Function parseUpdateExpression has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            Parser.prototype.parseUpdateExpression = function () {
                                                var expr;
                                                var startToken = this.lookahead;
                                                if (this.match('++') || this.match('--')) {
                                                    var node = this.startNode(startToken);
                                    Severity: Minor
                                    Found in dist/csp.tmpl.js - About 1 hr to fix

                                      Function nextJSXText has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              JSXParser.prototype.nextJSXText = function () {
                                                  this.startMarker.index = this.scanner.index;
                                                  this.startMarker.lineNumber = this.scanner.lineNumber;
                                                  this.startMarker.lineStart = this.scanner.lineStart;
                                                  var start = this.scanner.index;
                                      Severity: Minor
                                      Found in dist/csp.tmpl.js - About 1 hr to fix

                                        Function collectComments has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                Parser.prototype.collectComments = function () {
                                                    if (!this.config.comment) {
                                                        this.scanner.scanComments();
                                                    }
                                                    else {
                                        Severity: Minor
                                        Found in dist/csp.tmpl.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language