Showing 398 of 398 total issues

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 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 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

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          JSXParser.prototype.createJSXChildNode = function () {
                              return {
                                  index: this.scanner.index,
                                  line: this.scanner.lineNumber,
                                  column: this.scanner.index - this.scanner.lineStart
                  Severity: Major
                  Found in dist/csp.tmpl.js and 1 other location - About 2 hrs to fix
                  dist/csp.tmpl.js on lines 805..811

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 75.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                              while (!this.eof()) {
                                  if (!character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))) {
                                      break;
                                  }
                                  number += this.source[this.index++];
                  Severity: Major
                  Found in dist/csp.tmpl.js and 1 other location - About 2 hrs to fix
                  dist/csp.tmpl.js on lines 4180..4185

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 75.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          Parser.prototype.createNode = function () {
                              return {
                                  index: this.startMarker.index,
                                  line: this.startMarker.lineNumber,
                                  column: this.startMarker.index - this.startMarker.lineStart
                  Severity: Major
                  Found in dist/csp.tmpl.js and 1 other location - About 2 hrs to fix
                  dist/csp.tmpl.js on lines 5537..5543

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 75.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                              while (!this.eof()) {
                                  if (!character_1.Character.isHexDigit(this.source.charCodeAt(this.index))) {
                                      break;
                                  }
                                  number += this.source[this.index++];
                  Severity: Major
                  Found in dist/csp.tmpl.js and 1 other location - About 2 hrs to fix
                  dist/csp.tmpl.js on lines 4243..4248

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 75.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                                  if (!this.matchContextualKeyword('from')) {
                                      var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
                                      this.throwError(message, this.lookahead.value);
                                  }
                  Severity: Major
                  Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
                  dist/csp.tmpl.js on lines 3375..3378

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 74.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                                  if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
                                      this.tolerateError(messages_1.Messages.StrictLHSPrefix);
                                  }
                  Severity: Major
                  Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
                  dist/csp.tmpl.js on lines 1629..1631

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 74.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                                  if (!this.matchContextualKeyword('from')) {
                                      var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
                                      this.throwError(message, this.lookahead.value);
                                  }
                  Severity: Major
                  Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
                  dist/csp.tmpl.js on lines 3317..3320

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 74.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                                          if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
                                              this.tolerateError(messages_1.Messages.StrictLHSPostfix);
                                          }
                  Severity: Major
                  Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
                  dist/csp.tmpl.js on lines 1614..1616

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 74.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  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
                          Severity
                          Category
                          Status
                          Source
                          Language