Showing 193 of 398 total issues

Function Tokenizer has 77 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var Tokenizer = (function () {
        function Tokenizer(code, config) {
            this.errorHandler = new error_handler_1.ErrorHandler();
            this.errorHandler.tolerant = config ? (typeof config.tolerant === 'boolean' && config.tolerant) : false;
            this.scanner = new scanner_1.Scanner(code, this.errorHandler);
Severity: Major
Found in dist/csp.tmpl.js - About 3 hrs to fix

    Function scanPunctuator has 73 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            Scanner.prototype.scanPunctuator = function () {
                var token = {
                    type: token_1.Token.Punctuator,
                    value: '',
                    lineNumber: this.lineNumber,
    Severity: Major
    Found in dist/csp.tmpl.js - About 2 hrs to fix

      Function split has 72 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        _brackets.split = function split (str, tmpl, _bp) {
          // istanbul ignore next: _bp is for the compiler
          if (!_bp) _bp = _cache
      
          var
      Severity: Major
      Found in dist/es6.tmpl.js - About 2 hrs to fix

        Function split has 72 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          _brackets.split = function split (str, tmpl, _bp) {
            // istanbul ignore next: _bp is for the compiler
            if (!_bp) _bp = _cache;
        
            var
        Severity: Major
        Found in dist/csp.tmpl.js - About 2 hrs to fix

          Function split has 72 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _brackets.split = function split (str, tmpl, _bp) {
                // istanbul ignore next: _bp is for the compiler
                if (!_bp) _bp = _cache
          
                var
          Severity: Major
          Found in dist/tmpl.js - About 2 hrs to fix

            Function split has 72 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              _brackets.split = function split (str, tmpl, _bp) {
                // istanbul ignore next: _bp is for the compiler
                if (!_bp) _bp = _cache
            
                // Template text is easy: closing brackets are ignored, all we have to do is find
            Severity: Major
            Found in src/brackets.js - About 2 hrs to fix

              Function scanComments has 69 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      Scanner.prototype.scanComments = function () {
                          var comments;
                          if (this.trackComment) {
                              comments = [];
                          }
              Severity: Major
              Found in dist/csp.tmpl.js - About 2 hrs to fix

                Function parseAssignmentExpression has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        Parser.prototype.parseAssignmentExpression = function () {
                            var expr;
                            if (!this.context.allowYield && this.matchKeyword('yield')) {
                                expr = this.parseYieldExpression();
                            }
                Severity: Major
                Found in dist/csp.tmpl.js - About 2 hrs to fix

                  Function scanNumericLiteral has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          Scanner.prototype.scanNumericLiteral = function () {
                              var start = this.index;
                              var ch = this.source[start];
                              assert_1.assert(character_1.Character.isDecimalDigit(ch.charCodeAt(0)) || (ch === '.'), 'Numeric literal must start with a decimal digit or a decimal point');
                              var number = '';
                  Severity: Major
                  Found in dist/csp.tmpl.js - About 2 hrs to fix

                    Function skipMultiLineComment has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            Scanner.prototype.skipMultiLineComment = function () {
                                var comments;
                                var start, loc;
                                if (this.trackComment) {
                                    comments = [];
                    Severity: Major
                    Found in dist/csp.tmpl.js - About 2 hrs to fix

                      Function getNextToken has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              Tokenizer.prototype.getNextToken = function () {
                                  if (this.buffer.length === 0) {
                                      var comments = this.scanner.scanComments();
                                      if (this.scanner.trackComment) {
                                          for (var i = 0; i < comments.length; ++i) {
                      Severity: Major
                      Found in dist/csp.tmpl.js - About 2 hrs to fix

                        Function Reader has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            var Reader = (function () {
                                function Reader() {
                                    this.values = [];
                                    this.curly = this.paren = -1;
                                }
                        Severity: Major
                        Found in dist/csp.tmpl.js - About 2 hrs to fix

                          Function hoist has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function hoist(ast){
                          
                            var parentStack = [];
                            var variables = [];
                            var functions = [];
                          Severity: Major
                          Found in dist/csp.tmpl.js - About 2 hrs to fix

                            Function skipSingleLineComment has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    Scanner.prototype.skipSingleLineComment = function (offset) {
                                        var comments;
                                        var start, loc;
                                        if (this.trackComment) {
                                            comments = [];
                            Severity: Major
                            Found in dist/csp.tmpl.js - About 2 hrs to fix

                              Function skipRegex has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                var skipRegex = (function () { //eslint-disable-line no-unused-vars
                              
                                  var beforeReChars = '[{(,;:?=|&!^~>%*/'
                              
                                  var beforeReWords = [
                              Severity: Major
                              Found in dist/tmpl.js - About 2 hrs to fix

                                Function skipRegex has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                var skipRegex = (function () { //eslint-disable-line no-unused-vars
                                
                                  var beforeReChars = '[{(,;:?=|&!^~>%*/'
                                
                                  var beforeReWords = [
                                Severity: Major
                                Found in dist/es6.tmpl.js - About 2 hrs to fix

                                  Function skipRegex has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var skipRegex = (function () { //eslint-disable-line no-unused-vars
                                  
                                    var beforeReChars = '[{(,;:?=|&!^~>%*/';
                                  
                                    var beforeReWords = [
                                  Severity: Major
                                  Found in dist/csp.tmpl.js - About 2 hrs to fix

                                    Function skipRegex has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    var skipRegex = (function () { //eslint-disable-line no-unused-vars
                                    
                                      // safe characters to precced a regex (including `=>`, `**`, and `...`)
                                      var beforeReChars = '[{(,;:?=|&!^~>%*/'
                                    
                                    
                                    Severity: Major
                                    Found in src/skip-regex.js - About 2 hrs to fix

                                      Function getComplexIdentifier has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              Scanner.prototype.getComplexIdentifier = function () {
                                                  var cp = this.codePointAt(this.index);
                                                  var id = character_1.Character.fromCodePoint(cp);
                                                  this.index += id.length;
                                                  // '\u' (U+005C, U+0075) denotes an escaped character.
                                      Severity: Major
                                      Found in dist/csp.tmpl.js - About 2 hrs to fix

                                        Function ErrorHandler has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            var ErrorHandler = (function () {
                                                function ErrorHandler() {
                                                    this.errors = [];
                                                    this.tolerant = false;
                                                }
                                        Severity: Major
                                        Found in dist/csp.tmpl.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language