Hirse/brackets-outline-list

View on GitHub
thirdparty/espree.js

Summary

Maintainability
F
2 mos
Test Coverage

Function 3 has 4403 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],3:[function(require,module,exports){
(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.acorn = {}));
Severity: Major
Found in thirdparty/espree.js - About 3 wks to fix

    File espree.js has 5906 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**!
     * Espree version 9.6.1
     * (browserified with Browserify version 17.0.0)
     *
     * BSD 2-Clause License
    Severity: Major
    Found in thirdparty/espree.js - About 2 wks to fix

      Function 5 has 513 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{}],5:[function(require,module,exports){
      'use strict';
      
      Object.defineProperty(exports, '__esModule', { value: true });
      
      
      Severity: Major
      Found in thirdparty/espree.js - About 2 days to fix

        Function 1 has 392 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.espree = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
        'use strict';
        
        const XHTMLEntities = require('./xhtml');
        
        
        Severity: Major
        Found in thirdparty/espree.js - About 1 day to fix

          Function 4 has 333 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{}],4:[function(require,module,exports){
          'use strict';
          
          Object.defineProperty(exports, '__esModule', { value: true });
          
          
          Severity: Major
          Found in thirdparty/espree.js - About 1 day to fix

            Function plugin has 319 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function plugin(options, Parser) {
              const acorn = Parser.acorn || require("acorn");
              const acornJsx = getJsxTokens(acorn);
              const tt = acorn.tokTypes;
              const tok = acornJsx.tokTypes;
            Severity: Major
            Found in thirdparty/espree.js - About 1 day to fix

              Function 2 has 255 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"./xhtml":2,"acorn":3}],2:[function(require,module,exports){
              module.exports = {
                quot: '\u0022',
                amp: '&',
                apos: '\u0027',
              Severity: Major
              Found in thirdparty/espree.js - About 1 day to fix

                Function espree has 169 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var espree = () => Parser => {
                    const tokTypes = Object.assign({}, Parser.acorn.tokTypes);
                
                    if (Parser.acornJsx) {
                        Object.assign(tokTypes, Parser.acornJsx.tokTypes);
                Severity: Major
                Found in thirdparty/espree.js - About 6 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                          } else if (type === tt.semi || type === tt.comma ||
                                   type === tt.parenL || type === tt.parenR ||
                                   type === tt.braceL || type === tt.braceR ||
                                   type === tt.dot || type === tt.bracketL ||
                                   type === tt.colon || type === tt.question ||
                  Severity: Critical
                  Found in thirdparty/espree.js - About 6 hrs to fix

                    Function parseExprAtom has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
                        // If a division operator appears in an expression position, the
                        // tokenizer got confused, and we force it to read a regexp instead.
                        if (this.type === types$1.slash) { this.readRegexp(); }
                    
                    
                    Severity: Major
                    Found in thirdparty/espree.js - About 3 hrs to fix

                      Function translate has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          translate(token, extra) {
                      
                              const type = token.type,
                                  tt = this._acornTokTypes;
                      
                      
                      Severity: Major
                      Found in thirdparty/espree.js - About 2 hrs to fix

                        Function toAssignable has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {
                            if (this.options.ecmaVersion >= 6 && node) {
                              switch (node.type) {
                              case "Identifier":
                                if (this.inAsync && node.name === "await")
                        Severity: Major
                        Found in thirdparty/espree.js - About 2 hrs to fix

                          Function parseClassElement has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            pp$8.parseClassElement = function(constructorAllowsSuper) {
                              if (this.eat(types$1.semi)) { return null }
                          
                              var ecmaVersion = this.options.ecmaVersion;
                              var node = this.startNode();
                          Severity: Major
                          Found in thirdparty/espree.js - About 2 hrs to fix

                            Function parseParenAndDistinguishExpression has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
                                var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
                                if (this.options.ecmaVersion >= 6) {
                                  this.next();
                            
                            
                            Severity: Major
                            Found in thirdparty/espree.js - About 2 hrs to fix

                              Function parseSubscript has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
                                  var optionalSupported = this.options.ecmaVersion >= 11;
                                  var optional = optionalSupported && this.eat(types$1.questionDot);
                                  if (noCalls && optional) { this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions"); }
                              
                              
                              Severity: Major
                              Found in thirdparty/espree.js - About 2 hrs to fix

                                Function parseStatement has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  pp$8.parseStatement = function(context, topLevel, exports) {
                                    var starttype = this.type, node = this.startNode(), kind;
                                
                                    if (this.isLet(context)) {
                                      starttype = types$1._var;
                                Severity: Major
                                Found in thirdparty/espree.js - About 2 hrs to fix

                                  Function readEscapedChar has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    pp.readEscapedChar = function(inTemplate) {
                                      var ch = this.input.charCodeAt(++this.pos);
                                      ++this.pos;
                                      switch (ch) {
                                      case 110: return "\n" // 'n' -> '\n'
                                  Severity: Major
                                  Found in thirdparty/espree.js - About 2 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                        } else if (!isPattern && !containsEsc &&
                                                   this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" &&
                                                   (prop.key.name === "get" || prop.key.name === "set") &&
                                                   (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {
                                          if (isGenerator || isAsync) { this.unexpected(); }
                                    Severity: Critical
                                    Found in thirdparty/espree.js - About 2 hrs to fix

                                      Function onToken has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          onToken(token, extra) {
                                      
                                              const tt = this._acornTokTypes,
                                                  tokens = extra.tokens,
                                                  templateTokens = this._tokens;
                                      Severity: Minor
                                      Found in thirdparty/espree.js - About 1 hr to fix

                                        Function getTokenFromCode has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          pp.getTokenFromCode = function(code) {
                                            switch (code) {
                                            // The interpretation of a dot depends on whether it is followed
                                            // by a digit or another two dots.
                                            case 46: // '.'
                                        Severity: Minor
                                        Found in thirdparty/espree.js - About 1 hr to fix

                                          Function constructor has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                                  constructor(opts, code) {
                                                      if (typeof opts !== "object" || opts === null) {
                                                          opts = {};
                                                      }
                                                      if (typeof code !== "string" && !(code instanceof String)) {
                                          Severity: Minor
                                          Found in thirdparty/espree.js - About 1 hr to fix

                                            Function parseMaybeAssign has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                              pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {
                                                if (this.isContextual("yield")) {
                                                  if (this.inGenerator) { return this.parseYield(forInit) }
                                                  // The tokenizer will assume an expression is allowed after
                                                  // `yield`, but this isn't that kind of yield
                                            Severity: Minor
                                            Found in thirdparty/espree.js - About 1 hr to fix

                                              Function checkPropClash has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {
                                                  if (this.options.ecmaVersion >= 9 && prop.type === "SpreadElement")
                                                    { return }
                                                  if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))
                                                    { return }
                                              Severity: Minor
                                              Found in thirdparty/espree.js - About 1 hr to fix

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

                                                  pp$8.parseForStatement = function(node) {
                                                    this.next();
                                                    var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await")) ? this.lastTokStart : -1;
                                                    this.labels.push(loopLabel);
                                                    this.enterScope(0);
                                                Severity: Minor
                                                Found in thirdparty/espree.js - About 1 hr to fix

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

                                                    pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {
                                                      var startPos = this.start, startLoc = this.startLoc, expr;
                                                      if (this.isContextual("await") && this.canAwait) {
                                                        expr = this.parseAwait(forInit);
                                                        sawUnary = true;
                                                  Severity: Minor
                                                  Found in thirdparty/espree.js - About 1 hr to fix

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

                                                            parse() {
                                                                const extra = this[STATE];
                                                                const program = super.parse();
                                                    
                                                                program.sourceType = extra.originalSourceType;
                                                    Severity: Minor
                                                    Found in thirdparty/espree.js - About 1 hr to fix

                                                      Function readTmplToken has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                        pp.readTmplToken = function() {
                                                          var out = "", chunkStart = this.pos;
                                                          for (;;) {
                                                            if (this.pos >= this.input.length) { this.raise(this.start, "Unterminated template"); }
                                                            var ch = this.input.charCodeAt(this.pos);
                                                      Severity: Minor
                                                      Found in thirdparty/espree.js - About 1 hr to fix

                                                        Function Parser has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                          var Parser = function Parser(options, input, startPos) {
                                                            this.options = options = getOptions(options);
                                                            this.sourceFile = options.sourceFile;
                                                            this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
                                                            var reserved = "";
                                                        Severity: Minor
                                                        Found in thirdparty/espree.js - About 1 hr to fix

                                                          Consider simplifying this complex logical expression.
                                                          Open

                                                              if (prevType.beforeExpr && prevType !== types$1._else &&
                                                                  !(prevType === types$1.semi && this.curContext() !== types.p_stat) &&
                                                                  !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) &&
                                                                  !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat))
                                                                { this.context.push(types.f_expr); }
                                                          Severity: Critical
                                                          Found in thirdparty/espree.js - About 1 hr to fix

                                                            Consider simplifying this complex logical expression.
                                                            Open

                                                                if (
                                                                  ch !== -1 &&
                                                                  ch !== 0x24 /* $ */ &&
                                                                  !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) &&
                                                                  ch !== 0x2E /* . */ &&
                                                            Severity: Critical
                                                            Found in thirdparty/espree.js - About 1 hr to fix

                                                              Function jsx_parseElementAt has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  jsx_parseElementAt(startPos, startLoc) {
                                                                    let node = this.startNodeAt(startPos, startLoc);
                                                                    let children = [];
                                                                    let openingElement = this.jsx_parseOpeningElementAt(startPos, startLoc);
                                                                    let closingElement = null;
                                                              Severity: Minor
                                                              Found in thirdparty/espree.js - About 1 hr to fix

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

                                                                    jsx_readToken() {
                                                                      let out = '', chunkStart = this.pos;
                                                                      for (;;) {
                                                                        if (this.pos >= this.input.length)
                                                                          this.raise(this.start, 'Unterminated JSX contents');
                                                                Severity: Minor
                                                                Found in thirdparty/espree.js - About 1 hr to fix

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

                                                                  function getJsxTokens(acorn) {
                                                                    acorn = acorn.Parser.acorn || acorn;
                                                                    let acornJsx = acornJsxMap.get(acorn);
                                                                    if (!acornJsx) {
                                                                      const tt = acorn.tokTypes;
                                                                  Severity: Minor
                                                                  Found in thirdparty/espree.js - About 1 hr to fix

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

                                                                      pp$8.parseExport = function(node, exports) {
                                                                        this.next();
                                                                        // export * from '...'
                                                                        if (this.eat(types$1.star)) {
                                                                          return this.parseExportAllDeclaration(node, exports)
                                                                    Severity: Minor
                                                                    Found in thirdparty/espree.js - About 1 hr to fix

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

                                                                        pp.skipSpace = function() {
                                                                          loop: while (this.pos < this.input.length) {
                                                                            var ch = this.input.charCodeAt(this.pos);
                                                                            switch (ch) {
                                                                            case 32: case 160: // ' '
                                                                      Severity: Minor
                                                                      Found in thirdparty/espree.js - About 1 hr to fix

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

                                                                          pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
                                                                            var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;
                                                                            if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) {
                                                                              if (isPattern) {
                                                                                prop.argument = this.parseIdent(false);
                                                                        Severity: Minor
                                                                        Found in thirdparty/espree.js - About 1 hr to fix

                                                                          Consider simplifying this complex logical expression.
                                                                          Open

                                                                              if (
                                                                                curr === "iget" && next === "iset" ||
                                                                                curr === "iset" && next === "iget" ||
                                                                                curr === "sget" && next === "sset" ||
                                                                                curr === "sset" && next === "sget"
                                                                          Severity: Critical
                                                                          Found in thirdparty/espree.js - About 1 hr to fix

                                                                            Function parsePropertyValue has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                              pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
                                                                                if ((isGenerator || isAsync) && this.type === types$1.colon)
                                                                                  { this.unexpected(); }
                                                                            
                                                                                if (this.eat(types$1.colon)) {
                                                                            Severity: Minor
                                                                            Found in thirdparty/espree.js - About 1 hr to fix

                                                                              Function declareName has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                                pp$3.declareName = function(name, bindingType, pos) {
                                                                                  var redeclared = false;
                                                                                  if (bindingType === BIND_LEXICAL) {
                                                                                    var scope = this.currentScope();
                                                                                    redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;
                                                                              Severity: Minor
                                                                              Found in thirdparty/espree.js - About 1 hr to fix

                                                                                Function parseSwitchStatement has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                  pp$8.parseSwitchStatement = function(node) {
                                                                                    this.next();
                                                                                    node.discriminant = this.parseParenExpression();
                                                                                    node.cases = [];
                                                                                    this.expect(types$1.braceL);
                                                                                Severity: Minor
                                                                                Found in thirdparty/espree.js - About 1 hr to fix

                                                                                  Function regexp_eatRegExpUnicodeEscapeSequence has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                    pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
                                                                                      if ( forceU === void 0 ) forceU = false;
                                                                                  
                                                                                      var start = state.pos;
                                                                                      var switchU = forceU || state.switchU;
                                                                                  Severity: Minor
                                                                                  Found in thirdparty/espree.js - About 1 hr to fix

                                                                                    Function jsx_readEntity has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                        jsx_readEntity() {
                                                                                          let str = '', count = 0, entity;
                                                                                          let ch = this.input[this.pos];
                                                                                          if (ch !== '&')
                                                                                            this.raise(this.pos, 'Entity must start with an ampersand');
                                                                                    Severity: Minor
                                                                                    Found in thirdparty/espree.js - About 1 hr to fix

                                                                                      Function checkLValSimple has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                        pp$7.checkLValSimple = function(expr, bindingType, checkClashes) {
                                                                                          if ( bindingType === void 0 ) bindingType = BIND_NONE;
                                                                                      
                                                                                          var isBind = bindingType !== BIND_NONE;
                                                                                      
                                                                                      
                                                                                      Severity: Minor
                                                                                      Found in thirdparty/espree.js - About 1 hr to fix

                                                                                        Function readRegexp has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                          pp.readRegexp = function() {
                                                                                            var escaped, inClass, start = this.pos;
                                                                                            for (;;) {
                                                                                              if (this.pos >= this.input.length) { this.raise(start, "Unterminated regular expression"); }
                                                                                              var ch = this.input.charAt(this.pos);
                                                                                        Severity: Minor
                                                                                        Found in thirdparty/espree.js - About 1 hr to fix

                                                                                          Function parseClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                            pp$8.parseClass = function(node, isStatement) {
                                                                                              this.next();
                                                                                          
                                                                                              // ecma-262 14.6 Class Definitions
                                                                                              // A class definition is always strict mode code.
                                                                                          Severity: Minor
                                                                                          Found in thirdparty/espree.js - About 1 hr to fix

                                                                                            Function regexp_classSetExpression has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                              pp$1.regexp_classSetExpression = function(state) {
                                                                                                var result = CharSetOk, subResult;
                                                                                                if (this.regexp_eatClassSetRange(state)) ; else if (subResult = this.regexp_eatClassSetOperand(state)) {
                                                                                                  if (subResult === CharSetString) { result = CharSetString; }
                                                                                                  // https://tc39.es/ecma262/#prod-ClassIntersection
                                                                                            Severity: Minor
                                                                                            Found in thirdparty/espree.js - About 1 hr to fix

                                                                                              Function parseFunction has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {
                                                                                                  this.initFunction(node);
                                                                                                  if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {
                                                                                                    if (this.type === types$1.star && (statement & FUNC_HANGING_STATEMENT))
                                                                                                      { this.unexpected(); }
                                                                                              Severity: Minor
                                                                                              Found in thirdparty/espree.js - About 1 hr to fix

                                                                                                Consider simplifying this complex logical expression.
                                                                                                Open

                                                                                                    if (
                                                                                                      init.type === "VariableDeclaration" &&
                                                                                                      init.declarations[0].init != null &&
                                                                                                      (
                                                                                                        !isForIn ||
                                                                                                Severity: Major
                                                                                                Found in thirdparty/espree.js - About 1 hr to fix

                                                                                                  Consider simplifying this complex logical expression.
                                                                                                  Open

                                                                                                      if (isExpression) {
                                                                                                        node.body = this.parseMaybeAssign(forInit);
                                                                                                        node.expression = true;
                                                                                                        this.checkParams(node, false);
                                                                                                      } else {
                                                                                                  Severity: Major
                                                                                                  Found in thirdparty/espree.js - About 1 hr to fix

                                                                                                    Consider simplifying this complex logical expression.
                                                                                                    Open

                                                                                                        if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) {
                                                                                                          var isConstructor = !node.static && checkKeyName(node, "constructor");
                                                                                                          var allowsDirectSuper = isConstructor && constructorAllowsSuper;
                                                                                                          // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.
                                                                                                          if (isConstructor && kind !== "method") { this.raise(node.key.start, "Constructor can't have get/set modifier"); }
                                                                                                    Severity: Major
                                                                                                    Found in thirdparty/espree.js - About 1 hr to fix

                                                                                                      Consider simplifying this complex logical expression.
                                                                                                      Open

                                                                                                              if (this.options.ecmaVersion >= 8 && id.name === "async" && this.type === types$1.name && !containsEsc &&
                                                                                                                  (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) {
                                                                                                                id = this.parseIdent(false);
                                                                                                                if (this.canInsertSemicolon() || !this.eat(types$1.arrow))
                                                                                                                  { this.unexpected(); }
                                                                                                      Severity: Major
                                                                                                      Found in thirdparty/espree.js - About 1 hr to fix

                                                                                                        Consider simplifying this complex logical expression.
                                                                                                        Open

                                                                                                              if ((match[1] || match[2]) === "use strict") {
                                                                                                                skipWhiteSpace.lastIndex = start + match[0].length;
                                                                                                                var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
                                                                                                                var next = this.input.charAt(end);
                                                                                                                return next === ";" || next === "}" ||
                                                                                                        Severity: Major
                                                                                                        Found in thirdparty/espree.js - About 1 hr to fix

                                                                                                          Function parsePropertyValue has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                            pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
                                                                                                          Severity: Major
                                                                                                          Found in thirdparty/espree.js - About 1 hr to fix

                                                                                                            Consider simplifying this complex logical expression.
                                                                                                            Open

                                                                                                                if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||
                                                                                                                    (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {
                                                                                                                  return i + 1
                                                                                                                }
                                                                                                            Severity: Major
                                                                                                            Found in thirdparty/espree.js - About 1 hr to fix

                                                                                                              Function convertAcornCommentToEsprimaComment has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                              function convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code) {
                                                                                                              Severity: Major
                                                                                                              Found in thirdparty/espree.js - About 50 mins to fix

                                                                                                                Function parseSubscript has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                  pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
                                                                                                                Severity: Major
                                                                                                                Found in thirdparty/espree.js - About 50 mins to fix

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                              if (awaitAt > -1) { this.unexpected(awaitAt); }
                                                                                                                  Severity: Major
                                                                                                                  Found in thirdparty/espree.js - About 45 mins to fix

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

                                                                                                                      pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {
                                                                                                                    Severity: Minor
                                                                                                                    Found in thirdparty/espree.js - About 45 mins to fix

                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                      Open

                                                                                                                                    if (decimalNumber.test(str))
                                                                                                                                      entity = String.fromCharCode(parseInt(str, 10));
                                                                                                                      Severity: Major
                                                                                                                      Found in thirdparty/espree.js - About 45 mins to fix

                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                        Open

                                                                                                                                    if (refDestructuringErrors.doubleProto < 0) {
                                                                                                                                      refDestructuringErrors.doubleProto = key.start;
                                                                                                                                    }
                                                                                                                        Severity: Major
                                                                                                                        Found in thirdparty/espree.js - About 45 mins to fix

                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                          Open

                                                                                                                                  if (refDestructuringErrors.shorthandAssign < 0)
                                                                                                                                    { refDestructuringErrors.shorthandAssign = this.start; }
                                                                                                                          Severity: Major
                                                                                                                          Found in thirdparty/espree.js - About 45 mins to fix

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

                                                                                                                                            onComment(block, text, start, end, startLoc, endLoc) {
                                                                                                                            Severity: Minor
                                                                                                                            Found in thirdparty/espree.js - About 45 mins to fix

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                            if (hexNumber.test(str))
                                                                                                                                              entity = String.fromCharCode(parseInt(str, 16));
                                                                                                                              Severity: Major
                                                                                                                              Found in thirdparty/espree.js - About 45 mins to fix

                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                Open

                                                                                                                                            if (trail >= 0xDC00 && trail <= 0xDFFF) {
                                                                                                                                              state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;
                                                                                                                                              return true
                                                                                                                                            }
                                                                                                                                Severity: Major
                                                                                                                                Found in thirdparty/espree.js - About 45 mins to fix

                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                  Open

                                                                                                                                      if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
                                                                                                                                        isAsync = true;
                                                                                                                                        isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);
                                                                                                                                        this.parsePropertyName(prop);
                                                                                                                                      } else {
                                                                                                                                  Severity: Major
                                                                                                                                  Found in thirdparty/espree.js - About 40 mins to fix

                                                                                                                                    Function parseFunction has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                      pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in thirdparty/espree.js - About 35 mins to fix

                                                                                                                                      Function TokContext has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                        var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in thirdparty/espree.js - About 35 mins to fix

                                                                                                                                        Function parseExprOp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                          pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in thirdparty/espree.js - About 35 mins to fix

                                                                                                                                          Function parseSubscripts has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in thirdparty/espree.js - About 35 mins to fix

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

                                                                                                                                                  return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)
                                                                                                                                            Severity: Major
                                                                                                                                            Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                                      return this.parseExprImport(forNew)
                                                                                                                                              Severity: Major
                                                                                                                                              Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                Open

                                                                                                                                                    return true
                                                                                                                                                Severity: Major
                                                                                                                                                Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                  Open

                                                                                                                                                          return this.finishToken(tok.jsxTagStart);
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                    Open

                                                                                                                                                            { return this.parseLabeledStatement(node, maybeName, expr, context) }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                      Open

                                                                                                                                                          if (astral === false) { return false }
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                        Open

                                                                                                                                                            if (code < 97) { return code === 95 }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                          Open

                                                                                                                                                              if (code < 123) { return true }
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                            Open

                                                                                                                                                                return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes)
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                              Open

                                                                                                                                                                    { return parent === types.b_stat }
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                Open

                                                                                                                                                                    case 91: ++this.pos; return this.finishToken(types$1.bracketL)
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                  Open

                                                                                                                                                                      case 125: ++this.pos; return this.finishToken(types$1.braceR)
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                    Open

                                                                                                                                                                          { return false }
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                      Open

                                                                                                                                                                                  return;
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                        Open

                                                                                                                                                                              if (!keywordRelationalOperator.test(ident)) { return true }
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                          Open

                                                                                                                                                                                return this.parseFunction(node, 0)
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                            Open

                                                                                                                                                                                    return this.unexpected()
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                              Open

                                                                                                                                                                                    return true
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                Open

                                                                                                                                                                                    return isInAstralSet(code, astralIdentifierStartCodes)
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                  Open

                                                                                                                                                                                        return this.parseObj(false, refDestructuringErrors)
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                    Open

                                                                                                                                                                                          else { return this.parseExpressionStatement(node, expr) }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                      Open

                                                                                                                                                                                            return expr
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                        Open

                                                                                                                                                                                                if (next === 98 || next === 66) { return this.readRadixNumber(2) } // '0b', '0B' - binary number
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                          Open

                                                                                                                                                                                                return this.finishNode(node, "Literal")
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                            Open

                                                                                                                                                                                                return false
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                              Open

                                                                                                                                                                                                    return this.finishToken(types$1.backQuote)
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                      if (next === 120 || next === 88) { return this.readRadixNumber(16) } // '0x', '0X' - hex number
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                        return super.readToken(code);
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                          if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true }
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit)
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                            case 93: ++this.pos; return this.finishToken(types$1.bracketR)
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                              case 123: ++this.pos; return this.finishToken(types$1.braceL)
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                case 58: ++this.pos; return this.finishToken(types$1.colon)
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                  if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                      return this.finishNode(node, "ArrayExpression")
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                          if (next === 111 || next === 79) { return this.readRadixNumber(8) } // '0o', '0O' - octal number
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                        if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) }
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          if (astral === false) { return false }
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                            return false
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                return node
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                return this.parseFor(node, init)
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                    return id
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                    return false
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                          return this.parseFunctionStatement(node, true, !context)
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                        return !this.exprAllowed
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in thirdparty/espree.js - About 30 mins to fix

                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                          if (isClassSetSyntaxCharacter(ch)) { return false }
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in thirdparty/espree.js - About 30 mins to fix

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

                                                                                                                                                                                                                                        (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.espree = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
                                                                                                                                                                                                                                        'use strict';
                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        const XHTMLEntities = require('./xhtml');
                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 4 other locations - About 1 day to fix
                                                                                                                                                                                                                                        thirdparty/htmlparser2.js on lines 26..4483
                                                                                                                                                                                                                                        thirdparty/php-parser.js on lines 35..8743
                                                                                                                                                                                                                                        thirdparty/postcss-safe-parser.js on lines 26..6614
                                                                                                                                                                                                                                        thirdparty/promise.js on lines 28..665

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          pp$1.regexp_eatRegExpIdentifierStart = function(state) {
                                                                                                                                                                                                                                            var start = state.pos;
                                                                                                                                                                                                                                            var forceU = this.options.ecmaVersion >= 11;
                                                                                                                                                                                                                                            var ch = state.current(forceU);
                                                                                                                                                                                                                                            state.advance(forceU);
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 5108..5124

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          pp$1.regexp_eatRegExpIdentifierPart = function(state) {
                                                                                                                                                                                                                                            var start = state.pos;
                                                                                                                                                                                                                                            var forceU = this.options.ecmaVersion >= 11;
                                                                                                                                                                                                                                            var ch = state.current(forceU);
                                                                                                                                                                                                                                            state.advance(forceU);
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 5080..5096

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          pp$1.regexp_eatUnicodePropertyValue = function(state) {
                                                                                                                                                                                                                                            var ch = 0;
                                                                                                                                                                                                                                            state.lastStringValue = "";
                                                                                                                                                                                                                                            while (isUnicodePropertyValueCharacter(ch = state.current())) {
                                                                                                                                                                                                                                              state.lastStringValue += codePointToString(ch);
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 5428..5436

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          pp$1.regexp_eatUnicodePropertyName = function(state) {
                                                                                                                                                                                                                                            var ch = 0;
                                                                                                                                                                                                                                            state.lastStringValue = "";
                                                                                                                                                                                                                                            while (isUnicodePropertyNameCharacter(ch = state.current())) {
                                                                                                                                                                                                                                              state.lastStringValue += codePointToString(ch);
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 5444..5452

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

                                                                                                                                                                                                                                        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.options.ecmaVersion >= 9) {
                                                                                                                                                                                                                                                if (this.type === types$1._in) {
                                                                                                                                                                                                                                                  if (awaitAt > -1) { this.unexpected(awaitAt); }
                                                                                                                                                                                                                                                } else { node.await = awaitAt > -1; }
                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 1812..1816

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

                                                                                                                                                                                                                                        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.options.ecmaVersion >= 9) {
                                                                                                                                                                                                                                                  if (this.type === types$1._in) {
                                                                                                                                                                                                                                                    if (awaitAt > -1) { this.unexpected(awaitAt); }
                                                                                                                                                                                                                                                  } else { node.await = awaitAt > -1; }
                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 1826..1830

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                              this.type === types$1.name ||
                                                                                                                                                                                                                                              this.type === types$1.privateId ||
                                                                                                                                                                                                                                              this.type === types$1.num ||
                                                                                                                                                                                                                                              this.type === types$1.string ||
                                                                                                                                                                                                                                              this.type === types$1.bracketL ||
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                        thirdparty/htmlparser2.js on lines 4328..4333

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          pp$1.regexp_eatReverseSolidusAtomEscape = function(state) {
                                                                                                                                                                                                                                            var start = state.pos;
                                                                                                                                                                                                                                            if (state.eat(0x5C /* \ */)) {
                                                                                                                                                                                                                                              if (this.regexp_eatAtomEscape(state)) {
                                                                                                                                                                                                                                                return true
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 5189..5198

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          pp$1.regexp_eatCControlLetter = function(state) {
                                                                                                                                                                                                                                            var start = state.pos;
                                                                                                                                                                                                                                            if (state.eat(0x63 /* c */)) {
                                                                                                                                                                                                                                              if (this.regexp_eatControlLetter(state)) {
                                                                                                                                                                                                                                                return true
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 4916..4925

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

                                                                                                                                                                                                                                        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 (isNewLine(ch)) {
                                                                                                                                                                                                                                                    out += this.input.slice(chunkStart, this.pos);
                                                                                                                                                                                                                                                    out += this.jsx_readNewLine(true);
                                                                                                                                                                                                                                                    chunkStart = this.pos;
                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 219..225

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                                } else if (isNewLine(ch)) {
                                                                                                                                                                                                                                                  out += this.input.slice(chunkStart, this.pos);
                                                                                                                                                                                                                                                  out += this.jsx_readNewLine(false);
                                                                                                                                                                                                                                                  chunkStart = this.pos;
                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 179..185

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          pp$1.regexp_eatSyntaxCharacter = function(state) {
                                                                                                                                                                                                                                            var ch = state.current();
                                                                                                                                                                                                                                            if (isSyntaxCharacter(ch)) {
                                                                                                                                                                                                                                              state.lastIntValue = ch;
                                                                                                                                                                                                                                              state.advance();
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 5733..5741

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
                                                                                                                                                                                                                                            var ch = state.current();
                                                                                                                                                                                                                                            if (isClassSetReservedPunctuator(ch)) {
                                                                                                                                                                                                                                              state.lastIntValue = ch;
                                                                                                                                                                                                                                              state.advance();
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 4979..4987

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                              ch === 0x64 /* d */ ||
                                                                                                                                                                                                                                              ch === 0x44 /* D */ ||
                                                                                                                                                                                                                                              ch === 0x73 /* s */ ||
                                                                                                                                                                                                                                              ch === 0x53 /* S */ ||
                                                                                                                                                                                                                                              ch === 0x77 /* w */ ||
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 5746..5751

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                              ch === 0x21 /* ! */ ||
                                                                                                                                                                                                                                              ch === 0x23 /* # */ ||
                                                                                                                                                                                                                                              ch === 0x25 /* % */ ||
                                                                                                                                                                                                                                              ch === 0x26 /* & */ ||
                                                                                                                                                                                                                                              ch === 0x2C /* , */ ||
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 5379..5384

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit };
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 1382..1382

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit };
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 1380..1380

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

                                                                                                                                                                                                                                        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 (ecmaVersion >= 12) {
                                                                                                                                                                                                                                                  var next2$1 = this.input.charCodeAt(this.pos + 2);
                                                                                                                                                                                                                                                  if (next2$1 === 61) { return this.finishOp(types$1.assign, 3) }
                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 6104..6107

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

                                                                                                                                                                                                                                        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.options.ecmaVersion >= 12) {
                                                                                                                                                                                                                                                var next2 = this.input.charCodeAt(this.pos + 2);
                                                                                                                                                                                                                                                if (next2 === 61) { return this.finishOp(types$1.assign, 3) }
                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 6174..6177

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

                                                                                                                                                                                                                                        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 3 locations. Consider refactoring.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                            if (prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow)
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 7308..7310
                                                                                                                                                                                                                                        thirdparty/htmlparser2.js on lines 3672..3676

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

                                                                                                                                                                                                                                        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 3 locations. Consider refactoring.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                } else if (type === tt.semi || type === tt.comma ||
                                                                                                                                                                                                                                                         type === tt.parenL || type === tt.parenR ||
                                                                                                                                                                                                                                                         type === tt.braceL || type === tt.braceR ||
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 3090..3090
                                                                                                                                                                                                                                        thirdparty/htmlparser2.js on lines 3672..3676

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

                                                                                                                                                                                                                                        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 (ch === 92) { // '\'
                                                                                                                                                                                                                                                out += this.input.slice(chunkStart, this.pos);
                                                                                                                                                                                                                                                out += this.readEscapedChar(true);
                                                                                                                                                                                                                                                chunkStart = this.pos;
                                                                                                                                                                                                                                              } else if (isNewLine(ch)) {
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 6444..6458

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

                                                                                                                                                                                                                                        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 (ch === 92) { // '\'
                                                                                                                                                                                                                                                out += this.input.slice(chunkStart, this.pos);
                                                                                                                                                                                                                                                out += this.readEscapedChar(false);
                                                                                                                                                                                                                                                chunkStart = this.pos;
                                                                                                                                                                                                                                              } else if (ch === 0x2028 || ch === 0x2029) {
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 6509..6533

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

                                                                                                                                                                                                                                        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 (!first) {
                                                                                                                                                                                                                                                this.expect(types$1.comma);
                                                                                                                                                                                                                                                if (this.afterTrailingComma(types$1.braceR)) { break }
                                                                                                                                                                                                                                              } else { first = false; }
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 2597..2600

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

                                                                                                                                                                                                                                        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 (!first) {
                                                                                                                                                                                                                                                this.expect(types$1.comma);
                                                                                                                                                                                                                                                if (this.afterTrailingComma(types$1.braceR)) { break }
                                                                                                                                                                                                                                              } else { first = false; }
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 2671..2674

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                                } else if (type === tt.num) {
                                                                                                                                                                                                                                                    token.type = Token.Numeric;
                                                                                                                                                                                                                                                    token.value = this._code.slice(token.start, token.end);
                                                                                                                                                                                                                                                } else if (type === tt.string) {
                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 7308..7357

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

                                                                                                                                                                                                                                        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 (str[1] === 'x') {
                                                                                                                                                                                                                                                      str = str.substr(2);
                                                                                                                                                                                                                                                      if (hexNumber.test(str))
                                                                                                                                                                                                                                                        entity = String.fromCharCode(parseInt(str, 16));
                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 245..249

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                      str = str.substr(1);
                                                                                                                                                                                                                                                      if (decimalNumber.test(str))
                                                                                                                                                                                                                                                        entity = String.fromCharCode(parseInt(str, 10));
                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 241..245

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                            while (this.type !== types$1.braceR) {
                                                                                                                                                                                                                                              var stmt = this.parseStatement(null);
                                                                                                                                                                                                                                              node.body.push(stmt);
                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 2027..2030

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

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                            while (this.type !== types$1.braceR) {
                                                                                                                                                                                                                                              var stmt = this.parseStatement(null);
                                                                                                                                                                                                                                              node.body.push(stmt);
                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                        thirdparty/espree.js on lines 2348..2351

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

                                                                                                                                                                                                                                        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.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL)
                                                                                                                                                                                                                                                { this.unexpected(); }
                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                        Found in thirdparty/espree.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                        thirdparty/htmlparser2.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 46.

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                        There are no issues that match your filters.

                                                                                                                                                                                                                                        Category
                                                                                                                                                                                                                                        Status