WordPress/WordPress

View on GitHub
wp-includes/js/codemirror/esprima.js

Summary

Maintainability
F
3 mos
Test Coverage

File esprima.js has 6151 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function webpackUniversalModuleDefinition(root, factory) {
/* istanbul ignore next */
    if(typeof exports === 'object' && typeof module === 'object')
        module.exports = factory();
    else if(typeof define === 'function' && define.amd)
Severity: Major
Found in wp-includes/js/codemirror/esprima.js - About 2 wks to fix

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

        var Parser = (function () {
            function Parser(code, options, delegate) {
                if (options === void 0) { options = {}; }
                this.config = {
                    range: (typeof options.range === 'boolean') && options.range,
    Severity: Major
    Found in wp-includes/js/codemirror/esprima.js - About 2 wks to fix

      Function Scanner has 1054 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var Scanner = (function () {
              function Scanner(code, handler) {
                  this.source = code;
                  this.errorHandler = handler;
                  this.trackComment = false;
      Severity: Major
      Found in wp-includes/js/codemirror/esprima.js - About 5 days to fix

        Function JSXParser has 461 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var JSXParser = (function (_super) {
                __extends(JSXParser, _super);
                function JSXParser(code, options, delegate) {
                    return _super.call(this, code, options, delegate) || this;
                }
        Severity: Major
        Found in wp-includes/js/codemirror/esprima.js - About 2 days to fix

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

                  Parser.prototype.parseForStatement = function () {
                      var init = null;
                      var test = null;
                      var update = null;
                      var forIn = true;
          Severity: Major
          Found in wp-includes/js/codemirror/esprima.js - About 5 hrs to fix

            Function CommentHandler has 141 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var CommentHandler = (function () {
                    function CommentHandler() {
                        this.attach = false;
                        this.comments = [];
                        this.stack = [];
            Severity: Major
            Found in wp-includes/js/codemirror/esprima.js - About 5 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                                          if (str === '&&' || str === '||' || str === '==' || str === '!=' ||
                                              str === '+=' || str === '-=' || str === '*=' || str === '/=' ||
                                              str === '++' || str === '--' || str === '<<' || str === '>>' ||
                                              str === '&=' || str === '|=' || str === '^=' || str === '%=' ||
                                              str === '<=' || str === '>=' || str === '=>' || str === '**') {
              Severity: Critical
              Found in wp-includes/js/codemirror/esprima.js - About 5 hrs to fix

                Function scanTemplate has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        Scanner.prototype.scanTemplate = function () {
                            var cooked = '';
                            var terminated = false;
                            var start = this.index;
                            var head = (this.source[start] === '`');
                Severity: Major
                Found in wp-includes/js/codemirror/esprima.js - About 4 hrs to fix

                  Function parseGroupExpression has 119 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          Parser.prototype.parseGroupExpression = function () {
                              var expr;
                              this.expect('(');
                              if (this.match(')')) {
                                  this.nextToken();
                  Severity: Major
                  Found in wp-includes/js/codemirror/esprima.js - About 4 hrs to fix

                    Function scanStringLiteral has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            Scanner.prototype.scanStringLiteral = function () {
                                var start = this.index;
                                var quote = this.source[start];
                                assert_1.assert((quote === '\'' || quote === '"'), 'String literal must starts with a quote');
                                ++this.index;
                    Severity: Major
                    Found in wp-includes/js/codemirror/esprima.js - About 3 hrs to fix

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

                              Parser.prototype.parseClassElement = function (hasConstructor) {
                                  var token = this.lookahead;
                                  var node = this.createNode();
                                  var kind = '';
                                  var key = null;
                      Severity: Major
                      Found in wp-includes/js/codemirror/esprima.js - About 3 hrs to fix

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

                                Parser.prototype.parseAssignmentExpression = function () {
                                    var expr;
                                    if (!this.context.allowYield && this.matchKeyword('yield')) {
                                        expr = this.parseYieldExpression();
                                    }
                        Severity: Major
                        Found in wp-includes/js/codemirror/esprima.js - About 3 hrs to fix

                          Function parseExportDeclaration has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  Parser.prototype.parseExportDeclaration = function () {
                                      if (this.context.inFunctionBody) {
                                          this.throwError(messages_1.Messages.IllegalExportDeclaration);
                                      }
                                      var node = this.createNode();
                          Severity: Major
                          Found in wp-includes/js/codemirror/esprima.js - About 3 hrs to fix

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

                                    function Parser(code, options, delegate) {
                                        if (options === void 0) { options = {}; }
                                        this.config = {
                                            range: (typeof options.range === 'boolean') && options.range,
                                            loc: (typeof options.loc === 'boolean') && options.loc,
                            Severity: Major
                            Found in wp-includes/js/codemirror/esprima.js - About 3 hrs to fix

                              Function parsePrimaryExpression has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      Parser.prototype.parsePrimaryExpression = function () {
                                          var node = this.createNode();
                                          var expr;
                                          var token, raw;
                                          switch (this.lookahead.type) {
                              Severity: Major
                              Found in wp-includes/js/codemirror/esprima.js - About 3 hrs to fix

                                Function lexJSX has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        JSXParser.prototype.lexJSX = function () {
                                            var cp = this.scanner.source.charCodeAt(this.scanner.index);
                                            // < > / : = { }
                                            if (cp === 60 || cp === 62 || cp === 47 || cp === 58 || cp === 61 || cp === 123 || cp === 125) {
                                                var value = this.scanner.source[this.scanner.index++];
                                Severity: Major
                                Found in wp-includes/js/codemirror/esprima.js - About 3 hrs to fix

                                  Function parseObjectProperty has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          Parser.prototype.parseObjectProperty = function (hasProto) {
                                              var node = this.createNode();
                                              var token = this.lookahead;
                                              var kind;
                                              var key = null;
                                  Severity: Major
                                  Found in wp-includes/js/codemirror/esprima.js - About 3 hrs to fix

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

                                            Parser.prototype.parseStatement = function () {
                                                var statement;
                                                switch (this.lookahead.type) {
                                                    case 1 /* BooleanLiteral */:
                                                    case 5 /* NullLiteral */:
                                    Severity: Major
                                    Found in wp-includes/js/codemirror/esprima.js - About 2 hrs to fix

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

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

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

                                                Scanner.prototype.scanPunctuator = function () {
                                                    var start = this.index;
                                                    // Check for most common single-character punctuators.
                                                    var str = this.source[this.index];
                                                    switch (str) {
                                        Severity: Major
                                        Found in wp-includes/js/codemirror/esprima.js - About 2 hrs to fix

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

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

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

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

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

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

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

                                                        Parser.prototype.parseFunctionDeclaration = function (identifierIsOptional) {
                                                            var node = this.createNode();
                                                            var isAsync = this.matchContextualKeyword('async');
                                                            if (isAsync) {
                                                                this.nextToken();
                                                Severity: Major
                                                Found in wp-includes/js/codemirror/esprima.js - About 2 hrs to fix

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

                                                          Parser.prototype.parseFunctionExpression = function () {
                                                              var node = this.createNode();
                                                              var isAsync = this.matchContextualKeyword('async');
                                                              if (isAsync) {
                                                                  this.nextToken();
                                                  Severity: Major
                                                  Found in wp-includes/js/codemirror/esprima.js - About 2 hrs to fix

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

                                                            Parser.prototype.parseLeftHandSideExpressionAllowCall = function () {
                                                                var startToken = this.lookahead;
                                                                var maybeAsync = this.matchContextualKeyword('async');
                                                                var previousAllowIn = this.context.allowIn;
                                                                this.context.allowIn = true;
                                                    Severity: Major
                                                    Found in wp-includes/js/codemirror/esprima.js - About 2 hrs to fix

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

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

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

                                                                Parser.prototype.reinterpretAsCoverFormalsList = function (expr) {
                                                                    var params = [expr];
                                                                    var options;
                                                                    var asyncArrow = false;
                                                                    switch (expr.type) {
                                                        Severity: Major
                                                        Found in wp-includes/js/codemirror/esprima.js - About 2 hrs to fix

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

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

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

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

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

                                                                  var ErrorHandler = (function () {
                                                                      function ErrorHandler() {
                                                                          this.errors = [];
                                                                          this.tolerant = false;
                                                                      }
                                                              Severity: Minor
                                                              Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                        Scanner.prototype.getComplexIdentifier = function () {
                                                                            var cp = this.codePointAt(this.index);
                                                                            var id = character_1.Character.fromCodePoint(cp);
                                                                            this.index += id.length;
                                                                            // '\u' (U+005C, U+0075) denotes an escaped character.
                                                                Severity: Minor
                                                                Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

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

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

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

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

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

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

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

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

                                                                                  Parser.prototype.parseLabelledStatement = function () {
                                                                                      var node = this.createNode();
                                                                                      var expr = this.parseExpression();
                                                                                      var statement;
                                                                                      if ((expr.type === syntax_1.Syntax.Identifier) && this.match(':')) {
                                                                          Severity: Minor
                                                                          Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

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

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

                                                                                      Parser.prototype.parseStatementListItem = function () {
                                                                                          var statement;
                                                                                          this.context.isAssignmentTarget = true;
                                                                                          this.context.isBindingElement = true;
                                                                                          if (this.lookahead.type === 4 /* Keyword */) {
                                                                              Severity: Minor
                                                                              Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

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

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

                                                                                          Scanner.prototype.lex = function () {
                                                                                              if (this.eof()) {
                                                                                                  return {
                                                                                                      type: 2 /* EOF */,
                                                                                                      value: '',
                                                                                  Severity: Minor
                                                                                  Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                            JSXParser.prototype.parseComplexJSXElement = function (el) {
                                                                                                var stack = [];
                                                                                                while (!this.scanner.eof()) {
                                                                                                    el.children = el.children.concat(this.parseJSXChildren());
                                                                                                    var node = this.createJSXChildNode();
                                                                                    Severity: Minor
                                                                                    Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                              Parser.prototype.collectComments = function () {
                                                                                                  if (!this.config.comment) {
                                                                                                      this.scanner.scanComments();
                                                                                                  }
                                                                                                  else {
                                                                                      Severity: Minor
                                                                                      Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

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

                                                                                          Function finalize has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                                  Parser.prototype.finalize = function (marker, node) {
                                                                                                      if (this.config.range) {
                                                                                                          node.range = [marker.index, this.lastMarker.index];
                                                                                                      }
                                                                                                      if (this.config.loc) {
                                                                                          Severity: Minor
                                                                                          Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

                                                                                            Function findLeadingComments has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                                    CommentHandler.prototype.findLeadingComments = function (metadata) {
                                                                                                        var leadingComments = [];
                                                                                                        var target;
                                                                                                        while (this.stack.length > 0) {
                                                                                                            var entry = this.stack[this.stack.length - 1];
                                                                                            Severity: Minor
                                                                                            Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                      JSXParser.prototype.nextJSXText = function () {
                                                                                                          this.startMarker.index = this.scanner.index;
                                                                                                          this.startMarker.line = this.scanner.lineNumber;
                                                                                                          this.startMarker.column = this.scanner.index - this.scanner.lineStart;
                                                                                                          var start = this.scanner.index;
                                                                                              Severity: Minor
                                                                                              Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                        Parser.prototype.parsePropertyPattern = function (params, kind) {
                                                                                                            var node = this.createNode();
                                                                                                            var computed = false;
                                                                                                            var shorthand = false;
                                                                                                            var method = false;
                                                                                                Severity: Minor
                                                                                                Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

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

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

                                                                                                            Parser.prototype.reinterpretExpressionAsPattern = function (expr) {
                                                                                                                switch (expr.type) {
                                                                                                                    case syntax_1.Syntax.Identifier:
                                                                                                                    case syntax_1.Syntax.MemberExpression:
                                                                                                                    case syntax_1.Syntax.RestElement:
                                                                                                    Severity: Minor
                                                                                                    Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                              Parser.prototype.validateParam = function (options, param, name) {
                                                                                                                  var key = '$' + name;
                                                                                                                  if (this.context.strict) {
                                                                                                                      if (this.scanner.isRestrictedWord(name)) {
                                                                                                                          options.stricted = param;
                                                                                                      Severity: Minor
                                                                                                      Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                Scanner.prototype.testRegExp = function (pattern, flags) {
                                                                                                                    // The BMP character to use as a replacement for astral symbols when
                                                                                                                    // translating an ES6 "u"-flagged pattern to an ES5-compatible
                                                                                                                    // approximation.
                                                                                                                    // Note: replacing with '\uFFFF' enables false positives in unlikely
                                                                                                        Severity: Minor
                                                                                                        Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                  Scanner.prototype.scanOctalLiteral = function (prefix, start) {
                                                                                                                      var num = '';
                                                                                                                      var octal = false;
                                                                                                                      if (character_1.Character.isOctalDigit(prefix.charCodeAt(0))) {
                                                                                                                          octal = true;
                                                                                                          Severity: Minor
                                                                                                          Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                    Parser.prototype.parseLeftHandSideExpression = function () {
                                                                                                                        assert_1.assert(this.context.allowIn, 'callee of new expression always allow in keyword.');
                                                                                                                        var node = this.startNode(this.lookahead);
                                                                                                                        var expr = (this.matchKeyword('super') && this.context.inFunctionBody) ? this.parseSuper() :
                                                                                                                            this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression);
                                                                                                            Severity: Minor
                                                                                                            Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                      CommentHandler.prototype.visitComment = function (node, metadata) {
                                                                                                                          var type = (node.type[0] === 'L') ? 'Line' : 'Block';
                                                                                                                          var comment = {
                                                                                                                              type: type,
                                                                                                                              value: node.value
                                                                                                              Severity: Minor
                                                                                                              Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                        Parser.prototype.parseDirectivePrologues = function () {
                                                                                                                            var firstRestricted = null;
                                                                                                                            var body = [];
                                                                                                                            while (true) {
                                                                                                                                var token = this.lookahead;
                                                                                                                Severity: Minor
                                                                                                                Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                          Parser.prototype.parseFormalParameters = function (firstRestricted) {
                                                                                                                              var options;
                                                                                                                              options = {
                                                                                                                                  simple: true,
                                                                                                                                  params: [],
                                                                                                                  Severity: Minor
                                                                                                                  Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                            Scanner.prototype.scanIdentifier = function () {
                                                                                                                                var type;
                                                                                                                                var start = this.index;
                                                                                                                                // Backslash (U+005C) starts an escaped character.
                                                                                                                                var id = (this.source.charCodeAt(start) === 0x5C) ? this.getComplexIdentifier() : this.getIdentifier();
                                                                                                                    Severity: Minor
                                                                                                                    Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                              Reader.prototype.isRegexStart = function () {
                                                                                                                                  var previous = this.values[this.values.length - 1];
                                                                                                                                  var regex = (previous !== null);
                                                                                                                                  switch (previous) {
                                                                                                                                      case 'this':
                                                                                                                      Severity: Minor
                                                                                                                      Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                                Parser.prototype.parseArrayInitializer = function () {
                                                                                                                                    var node = this.createNode();
                                                                                                                                    var elements = [];
                                                                                                                                    this.expect('[');
                                                                                                                                    while (!this.match(']')) {
                                                                                                                        Severity: Minor
                                                                                                                        Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                                  Parser.prototype.parseSwitchStatement = function () {
                                                                                                                                      var node = this.createNode();
                                                                                                                                      this.expectKeyword('switch');
                                                                                                                                      this.expect('(');
                                                                                                                                      var discriminant = this.parseExpression();
                                                                                                                          Severity: Minor
                                                                                                                          Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

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

                                                                                                                                    Parser.prototype.checkPatternParam = function (options, param) {
                                                                                                                                        switch (param.type) {
                                                                                                                                            case syntax_1.Syntax.Identifier:
                                                                                                                                                this.validateParam(options, param, param.name);
                                                                                                                                                break;
                                                                                                                            Severity: Minor
                                                                                                                            Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                              Open

                                                                                                                                          if (this.match('+') || this.match('-') || this.match('~') || this.match('!') ||
                                                                                                                                              this.matchKeyword('delete') || this.matchKeyword('void') || this.matchKeyword('typeof')) {
                                                                                                                                              var node = this.startNode(this.lookahead);
                                                                                                                                              var token = this.nextToken();
                                                                                                                                              expr = this.inheritCoverGrammar(this.parseUnaryExpression);
                                                                                                                              Severity: Major
                                                                                                                              Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                Open

                                                                                                                                            if (cp === 60 || cp === 62 || cp === 47 || cp === 58 || cp === 61 || cp === 123 || cp === 125) {
                                                                                                                                                var value = this.scanner.source[this.scanner.index++];
                                                                                                                                                return {
                                                                                                                                                    type: 7 /* Punctuator */,
                                                                                                                                                    value: value,
                                                                                                                                Severity: Major
                                                                                                                                Found in wp-includes/js/codemirror/esprima.js - About 1 hr to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                                              if (arrow) {
                                                                                                                                                                  break;
                                                                                                                                                              }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                                    if (unescaped === null) {
                                                                                                                                                                        this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence);
                                                                                                                                                                    }
                                                                                                                                    Severity: Major
                                                                                                                                    Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                      Open

                                                                                                                                                                      if (ch && character_1.Character.isOctalDigit(ch.charCodeAt(0))) {
                                                                                                                                                                          var octToDec = this.octalToDecimal(ch);
                                                                                                                                                                          octal = octToDec.octal || octal;
                                                                                                                                                                          str += String.fromCharCode(octToDec.code);
                                                                                                                                                                      }
                                                                                                                                      Severity: Major
                                                                                                                                      Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                        Open

                                                                                                                                                                    if (expr.type === syntax_1.Syntax.Identifier && expr.name === 'yield') {
                                                                                                                                                                        arrow = true;
                                                                                                                                                                        expr = {
                                                                                                                                                                            type: ArrowParameterPlaceHolder,
                                                                                                                                                                            params: [expr],
                                                                                                                                        Severity: Major
                                                                                                                                        Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                                  if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
                                                                                                                                                                      this.tolerateError(messages_1.Messages.InvalidLHSInForIn);
                                                                                                                                                                  }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                            Open

                                                                                                                                                                            if (this.source[this.index] === '{') {
                                                                                                                                                                                ++this.index;
                                                                                                                                                                                str += this.scanUnicodeCodePointEscape();
                                                                                                                                                                            }
                                                                                                                                                                            else {
                                                                                                                                            Severity: Major
                                                                                                                                            Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                              Open

                                                                                                                                                                          if (this.scanner.isRestrictedWord(id.name)) {
                                                                                                                                                                              this.tolerateUnexpectedToken(token, messages_1.Messages.StrictLHSAssignment);
                                                                                                                                                                          }
                                                                                                                                              Severity: Major
                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                        if (this.trackComment) {
                                                                                                                                                                            comments = comments.concat(comment);
                                                                                                                                                                        }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                                  if ('<>=!+-*%&|^/'.indexOf(str) >= 0) {
                                                                                                                                                                                      ++this.index;
                                                                                                                                                                                  }
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                                            if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword('in')) {
                                                                                                                                                                                init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
                                                                                                                                                                                this.nextToken();
                                                                                                                                                                                left = init;
                                                                                                                                                                                right = this.parseExpression();
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                              if (this.trackComment) {
                                                                                                                                                                                  loc.end = {
                                                                                                                                                                                      line: this.lineNumber,
                                                                                                                                                                                      column: this.index - this.lineStart
                                                                                                                                                                                  };
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                        while (!this.match('}')) {
                                                                                                                                                                            isExportFromIdentifier = isExportFromIdentifier || this.matchKeyword('default');
                                                                                                                                                                            specifiers.push(this.parseExportSpecifier());
                                                                                                                                                                            if (!this.match('}')) {
                                                                                                                                                                                this.expect(',');
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                                      if (!this.match(',')) {
                                                                                                                                                                                          break;
                                                                                                                                                                                      }
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                else if (ch === 0x2A) {
                                                                                                                                                                                    this.index += 2;
                                                                                                                                                                                    var comment = this.skipMultiLineComment();
                                                                                                                                                                                    if (this.trackComment) {
                                                                                                                                                                                        comments = comments.concat(comment);
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                  if ((this.source.charCodeAt(this.index + 1) === 0x2D) && (this.source.charCodeAt(this.index + 2) === 0x3E)) {
                                                                                                                                                                                      // '-->' is a single-line comment
                                                                                                                                                                                      this.index += 3;
                                                                                                                                                                                      var comment = this.skipSingleLineComment(3);
                                                                                                                                                                                      if (this.trackComment) {
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                else if (ch === 0x3C) {
                                                                                                                                                                                    if (this.source.slice(this.index + 1, this.index + 4) === '!--') {
                                                                                                                                                                                        this.index += 4; // `<!--`
                                                                                                                                                                                        var comment = this.skipSingleLineComment(4);
                                                                                                                                                                                        if (this.trackComment) {
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                              if (!arrow) {
                                                                                                                                                                                                  if (!this.context.isBindingElement) {
                                                                                                                                                                                                      this.throwUnexpectedToken(this.lookahead);
                                                                                                                                                                                                  }
                                                                                                                                                                                                  if (expr.type === syntax_1.Syntax.SequenceExpression) {
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                        if (ch === '\r' && this.source[this.index] === '\n') {
                                                                                                                                                                                            ++this.index;
                                                                                                                                                                                        }
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                                  for (str += '\\u'; restore < this.index; ++restore) {
                                                                                                                                                                                                      str += this.source[restore];
                                                                                                                                                                                                  }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                                    if (this.scanner.isStrictModeReservedWord(id.name)) {
                                                                                                                                                                                                        this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
                                                                                                                                                                                                    }
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                                      if (token.value === 'get' || token.value === 'set') {
                                                                                                                                                                                                          this.tolerateUnexpectedToken(token);
                                                                                                                                                                                                      }
                                                                                                                                                                                                      else if (token.value === 'constructor') {
                                                                                                                                                                                                          this.tolerateUnexpectedToken(token, messages_1.Messages.ConstructorIsAsync);
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                            if (this.matchContextualKeyword('from')) {
                                                                                                                                                                                                // export {default} from 'foo';
                                                                                                                                                                                                // export {foo} from 'foo';
                                                                                                                                                                                                this.nextToken();
                                                                                                                                                                                                source = this.parseModuleSpecifier();
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                                      switch (ch) {
                                                                                                                                                                                                          case 'n':
                                                                                                                                                                                                              cooked += '\n';
                                                                                                                                                                                                              break;
                                                                                                                                                                                                          case 'r':
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

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

                                                                                                                                                                                        function Property(kind, key, computed, value, method, shorthand) {
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                                              if (this.match(')')) {
                                                                                                                                                                                                                  this.nextToken();
                                                                                                                                                                                                                  for (var i = 0; i < expressions.length; i++) {
                                                                                                                                                                                                                      this.reinterpretExpressionAsPattern(expressions[i]);
                                                                                                                                                                                                                  }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                    Open

                                                                                                                                                                                                        else if (this.matchContextualKeyword('of')) {
                                                                                                                                                                                                            if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
                                                                                                                                                                                                                this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
                                                                                                                                                                                                            }
                                                                                                                                                                                                            this.nextToken();
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                                              if (ch === '\r' && this.source[this.index] === '\n') {
                                                                                                                                                                                                                  ++this.index;
                                                                                                                                                                                                              }
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in wp-includes/js/codemirror/esprima.js - About 45 mins to fix

                                                                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                                                                        Open

                                                                                                                                                                                                                if (str === '===' || str === '!==' || str === '>>>' ||
                                                                                                                                                                                                                    str === '<<=' || str === '>>=' || str === '**=') {
                                                                                                                                                                                                                    this.index += 3;
                                                                                                                                                                                                                }
                                                                                                                                                                                                                else {
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in wp-includes/js/codemirror/esprima.js - About 40 mins to fix

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

                                                                                                                                                                                                  function MethodDefinition(key, computed, value, kind, isStatic) {
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in wp-includes/js/codemirror/esprima.js - About 35 mins to fix

                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                return this.scanIdentifier();
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                              Open

                                                                                                                                                                                                                  return this.scanNumericLiteral();
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                                return {
                                                                                                                                                                                                                    type: 100 /* Identifier */,
                                                                                                                                                                                                                    value: id,
                                                                                                                                                                                                                    lineNumber: this.scanner.lineNumber,
                                                                                                                                                                                                                    lineStart: this.scanner.lineStart,
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                              return this.scanner.lex();
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                    return this.scanPunctuator();
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                      return this.scanTemplate();
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                    return this.scanPunctuator();
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                      return {
                                                                                                                                                                                                                          type: 6 /* NumericLiteral */,
                                                                                                                                                                                                                          value: parseFloat(num),
                                                                                                                                                                                                                          lineNumber: this.lineNumber,
                                                                                                                                                                                                                          lineStart: this.lineStart,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                            return this.scanNumericLiteral();
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in wp-includes/js/codemirror/esprima.js - About 30 mins to fix

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

                                                                                                                                                                                                                          if (!this.config.comment) {
                                                                                                                                                                                                                              this.scanner.scanComments();
                                                                                                                                                                                                                          }
                                                                                                                                                                                                                          else {
                                                                                                                                                                                                                              var comments = this.scanner.scanComments();
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 2 days to fix
                                                                                                                                                                                                              wp-includes/js/dist/patterns.js on lines 645..651

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      Parser.prototype.parseArguments = function () {
                                                                                                                                                                                                                          this.expect('(');
                                                                                                                                                                                                                          var args = [];
                                                                                                                                                                                                                          if (!this.match(')')) {
                                                                                                                                                                                                                              while (true) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2857..2876

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

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                      Parser.prototype.parseAsyncArguments = function () {
                                                                                                                                                                                                                          this.expect('(');
                                                                                                                                                                                                                          var args = [];
                                                                                                                                                                                                                          if (!this.match(')')) {
                                                                                                                                                                                                                              while (true) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2794..2813

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

                                                                                                                                                                                                              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.context.strict) {
                                                                                                                                                                                                                                  if (this.scanner.isRestrictedWord(token.value)) {
                                                                                                                                                                                                                                      this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName);
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4305..4319

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

                                                                                                                                                                                                              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.context.strict) {
                                                                                                                                                                                                                                  if (this.scanner.isRestrictedWord(token.value)) {
                                                                                                                                                                                                                                      this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName);
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4370..4384

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

                                                                                                                                                                                                              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.operatorPrecedence = {
                                                                                                                                                                                                                              ')': 0,
                                                                                                                                                                                                                              ';': 0,
                                                                                                                                                                                                                              ',': 0,
                                                                                                                                                                                                                              '=': 0,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/jsonlint.js on lines 5..5

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

                                                                                                                                                                                                              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.source[this.index] === '{') {
                                                                                                                                                                                                                                  ++this.index;
                                                                                                                                                                                                                                  ch = this.scanUnicodeCodePointEscape();
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                              else {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5518..5527

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

                                                                                                                                                                                                              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.source[this.index] === '{') {
                                                                                                                                                                                                                                      ++this.index;
                                                                                                                                                                                                                                      ch = this.scanUnicodeCodePointEscape();
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                  else {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5491..5500

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var FunctionDeclaration = (function () {
                                                                                                                                                                                                                      function FunctionDeclaration(id, params, body, generator) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.FunctionDeclaration;
                                                                                                                                                                                                                          this.id = id;
                                                                                                                                                                                                                          this.params = params;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1464..1475

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var FunctionExpression = (function () {
                                                                                                                                                                                                                      function FunctionExpression(id, params, body, generator) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.FunctionExpression;
                                                                                                                                                                                                                          this.id = id;
                                                                                                                                                                                                                          this.params = params;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1451..1462

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var ArrowFunctionExpression = (function () {
                                                                                                                                                                                                                      function ArrowFunctionExpression(params, body, expression) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ArrowFunctionExpression;
                                                                                                                                                                                                                          this.id = null;
                                                                                                                                                                                                                          this.params = params;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1196..1207

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var AsyncArrowFunctionExpression = (function () {
                                                                                                                                                                                                                      function AsyncArrowFunctionExpression(params, body, expression) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ArrowFunctionExpression;
                                                                                                                                                                                                                          this.id = null;
                                                                                                                                                                                                                          this.params = params;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1164..1175

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var AsyncFunctionExpression = (function () {
                                                                                                                                                                                                                      function AsyncFunctionExpression(id, params, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.FunctionExpression;
                                                                                                                                                                                                                          this.id = id;
                                                                                                                                                                                                                          this.params = params;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1209..1220

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var AsyncFunctionDeclaration = (function () {
                                                                                                                                                                                                                      function AsyncFunctionDeclaration(id, params, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.FunctionDeclaration;
                                                                                                                                                                                                                          this.id = id;
                                                                                                                                                                                                                          this.params = params;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1222..1233

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          return op === '=' ||
                                                                                                                                                                                                                              op === '*=' ||
                                                                                                                                                                                                                              op === '**=' ||
                                                                                                                                                                                                                              op === '/=' ||
                                                                                                                                                                                                                              op === '%=' ||
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5640..5643

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

                                                                                                                                                                                                              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 === '&&' || str === '||' || str === '==' || str === '!=' ||
                                                                                                                                                                                                                                              str === '+=' || str === '-=' || str === '*=' || str === '/=' ||
                                                                                                                                                                                                                                              str === '++' || str === '--' || str === '<<' || str === '>>' ||
                                                                                                                                                                                                                                              str === '&=' || str === '|=' || str === '^=' || str === '%=' ||
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2210..2222

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      JSXParser.prototype.expectJSX = function (value) {
                                                                                                                                                                                                                          var token = this.nextJSXToken();
                                                                                                                                                                                                                          if (token.type !== 7 /* Punctuator */ || token.value !== value) {
                                                                                                                                                                                                                              this.throwUnexpectedToken(token);
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2158..2163
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2185..2190

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      Parser.prototype.expectKeyword = function (keyword) {
                                                                                                                                                                                                                          var token = this.nextToken();
                                                                                                                                                                                                                          if (token.type !== 4 /* Keyword */ || token.value !== keyword) {
                                                                                                                                                                                                                              this.throwUnexpectedToken(token);
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 709..714
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2158..2163

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      Parser.prototype.expect = function (value) {
                                                                                                                                                                                                                          var token = this.nextToken();
                                                                                                                                                                                                                          if (token.type !== 7 /* Punctuator */ || token.value !== value) {
                                                                                                                                                                                                                              this.throwUnexpectedToken(token);
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 709..714
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2185..2190

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

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

                                                                                                                                                                                                                  var ClassExpression = (function () {
                                                                                                                                                                                                                      function ClassExpression(id, superClass, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ClassExpression;
                                                                                                                                                                                                                          this.id = id;
                                                                                                                                                                                                                          this.superClass = superClass;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var ConditionalExpression = (function () {
                                                                                                                                                                                                                      function ConditionalExpression(test, consequent, alternate) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ConditionalExpression;
                                                                                                                                                                                                                          this.test = test;
                                                                                                                                                                                                                          this.consequent = consequent;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var JSXElement = (function () {
                                                                                                                                                                                                                      function JSXElement(openingElement, children, closingElement) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXElement;
                                                                                                                                                                                                                          this.openingElement = openingElement;
                                                                                                                                                                                                                          this.children = children;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var AssignmentExpression = (function () {
                                                                                                                                                                                                                      function AssignmentExpression(operator, left, right) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.AssignmentExpression;
                                                                                                                                                                                                                          this.operator = operator;
                                                                                                                                                                                                                          this.left = left;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var TryStatement = (function () {
                                                                                                                                                                                                                      function TryStatement(block, handler, finalizer) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.TryStatement;
                                                                                                                                                                                                                          this.block = block;
                                                                                                                                                                                                                          this.handler = handler;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var UpdateExpression = (function () {
                                                                                                                                                                                                                      function UpdateExpression(operator, argument, prefix) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.UpdateExpression;
                                                                                                                                                                                                                          this.operator = operator;
                                                                                                                                                                                                                          this.argument = argument;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751

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

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

                                                                                                                                                                                                                  var ExportNamedDeclaration = (function () {
                                                                                                                                                                                                                      function ExportNamedDeclaration(declaration, specifiers, source) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ExportNamedDeclaration;
                                                                                                                                                                                                                          this.declaration = declaration;
                                                                                                                                                                                                                          this.specifiers = specifiers;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var IfStatement = (function () {
                                                                                                                                                                                                                      function IfStatement(test, consequent, alternate) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.IfStatement;
                                                                                                                                                                                                                          this.test = test;
                                                                                                                                                                                                                          this.consequent = consequent;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var ClassDeclaration = (function () {
                                                                                                                                                                                                                      function ClassDeclaration(id, superClass, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ClassDeclaration;
                                                                                                                                                                                                                          this.id = id;
                                                                                                                                                                                                                          this.superClass = superClass;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var JSXOpeningElement = (function () {
                                                                                                                                                                                                                      function JSXOpeningElement(name, selfClosing, attributes) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXOpeningElement;
                                                                                                                                                                                                                          this.name = name;
                                                                                                                                                                                                                          this.selfClosing = selfClosing;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1430..1438
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

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

                                                                                                                                                                                                                  var ForOfStatement = (function () {
                                                                                                                                                                                                                      function ForOfStatement(left, right, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ForOfStatement;
                                                                                                                                                                                                                          this.left = left;
                                                                                                                                                                                                                          this.right = right;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 10 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1030..1038
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1090..1098
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1177..1185
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1296..1304
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1306..1314
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1326..1334
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1392..1400
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1485..1493
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1743..1751
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1763..1771

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var StaticMemberExpression = (function () {
                                                                                                                                                                                                                      function StaticMemberExpression(object, property) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.MemberExpression;
                                                                                                                                                                                                                          this.computed = false;
                                                                                                                                                                                                                          this.object = object;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1316..1324

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var ComputedMemberExpression = (function () {
                                                                                                                                                                                                                      function ComputedMemberExpression(object, property) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.MemberExpression;
                                                                                                                                                                                                                          this.computed = true;
                                                                                                                                                                                                                          this.object = object;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1666..1674

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

                                                                                                                                                                                                              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 (this.context.strict && id.type === syntax_1.Syntax.Identifier) {
                                                                                                                                                                                                                              if (this.scanner.isRestrictedWord(id.name)) {
                                                                                                                                                                                                                                  this.tolerateError(messages_1.Messages.StrictVarName);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3405..3409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4051..4055

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

                                                                                                                                                                                                                          if (this.context.strict && param.type === syntax_1.Syntax.Identifier) {
                                                                                                                                                                                                                              if (this.scanner.isRestrictedWord(param.name)) {
                                                                                                                                                                                                                                  this.tolerateError(messages_1.Messages.StrictCatchVariable);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3405..3409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3597..3601

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

                                                                                                                                                                                                                          if (this.context.strict && id.type === syntax_1.Syntax.Identifier) {
                                                                                                                                                                                                                              if (this.scanner.isRestrictedWord(id.name)) {
                                                                                                                                                                                                                                  this.tolerateError(messages_1.Messages.StrictVarName);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3597..3601
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4051..4055

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          while (!this.eof()) {
                                                                                                                                                                                                                              if (!character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))) {
                                                                                                                                                                                                                                  break;
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                              num += this.source[this.index++];
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5672..5677

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 75.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                          while (!this.eof()) {
                                                                                                                                                                                                                              if (!character_1.Character.isHexDigit(this.source.charCodeAt(this.index))) {
                                                                                                                                                                                                                                  break;
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                              num += this.source[this.index++];
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5733..5738

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 75.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              if (!this.matchContextualKeyword('from')) {
                                                                                                                                                                                                                                  var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
                                                                                                                                                                                                                                  this.throwError(message, this.lookahead.value);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4892..4895

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              if (!this.matchContextualKeyword('from')) {
                                                                                                                                                                                                                                  var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
                                                                                                                                                                                                                                  this.throwError(message, this.lookahead.value);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4827..4830

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
                                                                                                                                                                                                                                  this.tolerateError(messages_1.Messages.StrictLHSPrefix);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3000..3002

                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                              This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                      if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
                                                                                                                                                                                                                                          this.tolerateError(messages_1.Messages.StrictLHSPostfix);
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2985..2987

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

                                                                                                                                                                                                                  var ExportSpecifier = (function () {
                                                                                                                                                                                                                      function ExportSpecifier(local, exported) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ExportSpecifier;
                                                                                                                                                                                                                          this.exported = exported;
                                                                                                                                                                                                                          this.local = local;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var MetaProperty = (function () {
                                                                                                                                                                                                                      function MetaProperty(meta, property) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.MetaProperty;
                                                                                                                                                                                                                          this.meta = meta;
                                                                                                                                                                                                                          this.property = property;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var JSXAttribute = (function () {
                                                                                                                                                                                                                      function JSXAttribute(name, value) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXAttribute;
                                                                                                                                                                                                                          this.name = name;
                                                                                                                                                                                                                          this.value = value;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var JSXNamespacedName = (function () {
                                                                                                                                                                                                                      function JSXNamespacedName(namespace, name) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXNamespacedName;
                                                                                                                                                                                                                          this.namespace = namespace;
                                                                                                                                                                                                                          this.name = name;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var Directive = (function () {
                                                                                                                                                                                                                      function Directive(expression, directive) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ExpressionStatement;
                                                                                                                                                                                                                          this.expression = expression;
                                                                                                                                                                                                                          this.directive = directive;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var WithStatement = (function () {
                                                                                                                                                                                                                      function WithStatement(object, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.WithStatement;
                                                                                                                                                                                                                          this.object = object;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var ImportDeclaration = (function () {
                                                                                                                                                                                                                      function ImportDeclaration(specifiers, source) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ImportDeclaration;
                                                                                                                                                                                                                          this.specifiers = specifiers;
                                                                                                                                                                                                                          this.source = source;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var LabeledStatement = (function () {
                                                                                                                                                                                                                      function LabeledStatement(label, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.LabeledStatement;
                                                                                                                                                                                                                          this.label = label;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var YieldExpression = (function () {
                                                                                                                                                                                                                      function YieldExpression(argument, delegate) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.YieldExpression;
                                                                                                                                                                                                                          this.argument = argument;
                                                                                                                                                                                                                          this.delegate = delegate;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807

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

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

                                                                                                                                                                                                                  var Literal = (function () {
                                                                                                                                                                                                                      function Literal(value, raw) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.Literal;
                                                                                                                                                                                                                          this.value = value;
                                                                                                                                                                                                                          this.raw = raw;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var NewExpression = (function () {
                                                                                                                                                                                                                      function NewExpression(callee, args) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.NewExpression;
                                                                                                                                                                                                                          this.callee = callee;
                                                                                                                                                                                                                          this.arguments = args;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var ImportSpecifier = (function () {
                                                                                                                                                                                                                      function ImportSpecifier(local, imported) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ImportSpecifier;
                                                                                                                                                                                                                          this.local = local;
                                                                                                                                                                                                                          this.imported = imported;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var TemplateLiteral = (function () {
                                                                                                                                                                                                                      function TemplateLiteral(quasis, expressions) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.TemplateLiteral;
                                                                                                                                                                                                                          this.quasis = quasis;
                                                                                                                                                                                                                          this.expressions = expressions;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var JSXMemberExpression = (function () {
                                                                                                                                                                                                                      function JSXMemberExpression(object, property) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXMemberExpression;
                                                                                                                                                                                                                          this.object = object;
                                                                                                                                                                                                                          this.property = property;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var CatchClause = (function () {
                                                                                                                                                                                                                      function CatchClause(param, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.CatchClause;
                                                                                                                                                                                                                          this.param = param;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var AssignmentPattern = (function () {
                                                                                                                                                                                                                      function AssignmentPattern(left, right) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.AssignmentPattern;
                                                                                                                                                                                                                          this.left = left;
                                                                                                                                                                                                                          this.right = right;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var VariableDeclaration = (function () {
                                                                                                                                                                                                                      function VariableDeclaration(declarations, kind) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.VariableDeclaration;
                                                                                                                                                                                                                          this.declarations = declarations;
                                                                                                                                                                                                                          this.kind = kind;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var CallExpression = (function () {
                                                                                                                                                                                                                      function CallExpression(callee, args) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.CallExpression;
                                                                                                                                                                                                                          this.callee = callee;
                                                                                                                                                                                                                          this.arguments = args;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var TaggedTemplateExpression = (function () {
                                                                                                                                                                                                                      function TaggedTemplateExpression(tag, quasi) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.TaggedTemplateExpression;
                                                                                                                                                                                                                          this.tag = tag;
                                                                                                                                                                                                                          this.quasi = quasi;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var VariableDeclarator = (function () {
                                                                                                                                                                                                                      function VariableDeclarator(id, init) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.VariableDeclarator;
                                                                                                                                                                                                                          this.id = id;
                                                                                                                                                                                                                          this.init = init;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var TemplateElement = (function () {
                                                                                                                                                                                                                      function TemplateElement(value, tail) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.TemplateElement;
                                                                                                                                                                                                                          this.value = value;
                                                                                                                                                                                                                          this.tail = tail;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var WhileStatement = (function () {
                                                                                                                                                                                                                      function WhileStatement(test, body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.WhileStatement;
                                                                                                                                                                                                                          this.test = test;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var SwitchCase = (function () {
                                                                                                                                                                                                                      function SwitchCase(test, consequent) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.SwitchCase;
                                                                                                                                                                                                                          this.test = test;
                                                                                                                                                                                                                          this.consequent = consequent;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var SwitchStatement = (function () {
                                                                                                                                                                                                                      function SwitchStatement(discriminant, cases) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.SwitchStatement;
                                                                                                                                                                                                                          this.discriminant = discriminant;
                                                                                                                                                                                                                          this.cases = cases;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var JSXText = (function () {
                                                                                                                                                                                                                      function JSXText(value, raw) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXText;
                                                                                                                                                                                                                          this.value = value;
                                                                                                                                                                                                                          this.raw = raw;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1360..1367
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

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

                                                                                                                                                                                                                  var DoWhileStatement = (function () {
                                                                                                                                                                                                                      function DoWhileStatement(body, test) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.DoWhileStatement;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                                          this.test = test;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 25 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1063..1070
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1072..1079
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1081..1088
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1108..1115
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1187..1194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1270..1277
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1279..1286
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1351..1358
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1402..1409
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1495..1502
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1520..1527
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1529..1536
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1538..1545
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1547..1554
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1577..1584
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1683..1690
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1692..1699
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1701..1708
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1710..1717
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1719..1726
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1773..1780
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1782..1789
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1791..1798
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1800..1807
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1809..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 69.

                                                                                                                                                                                                              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 (token.type === 3 /* Identifier */ && !isAsync && token.value === 'get' && lookaheadPropertyKey) {
                                                                                                                                                                                                                              kind = 'get';
                                                                                                                                                                                                                              computed = this.match('[');
                                                                                                                                                                                                                              key = this.parseObjectPropertyKey();
                                                                                                                                                                                                                              this.context.allowYield = false;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4598..4610

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

                                                                                                                                                                                                              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 (token.value === 'get' && lookaheadPropertyKey) {
                                                                                                                                                                                                                                  kind = 'get';
                                                                                                                                                                                                                                  computed = this.match('[');
                                                                                                                                                                                                                                  key = this.parseObjectPropertyKey();
                                                                                                                                                                                                                                  this.context.allowYield = false;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2530..2586

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

                                                                                                                                                                                                              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 (!character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                                                                                                                                                                                                                                      switch (ch) {
                                                                                                                                                                                                                                          case 'n':
                                                                                                                                                                                                                                              cooked += '\n';
                                                                                                                                                                                                                                              break;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5855..5918

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                                  if (!ch || !character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                                                                                                                                                                                                                                      switch (ch) {
                                                                                                                                                                                                                                          case 'u':
                                                                                                                                                                                                                                              if (this.source[this.index] === '{') {
                                                                                                                                                                                                                                                  ++this.index;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5969..6037

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var Script = (function () {
                                                                                                                                                                                                                      function Script(body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.Program;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                                          this.sourceType = 'script';
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1568..1575

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var Module = (function () {
                                                                                                                                                                                                                      function Module(body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.Program;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                                          this.sourceType = 'module';
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1641..1648

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      Parser.prototype.parseClassBody = function () {
                                                                                                                                                                                                                          var node = this.createNode();
                                                                                                                                                                                                                          var elementList = this.parseClassElementList();
                                                                                                                                                                                                                          return this.finalize(node, new Node.ClassBody(elementList));
                                                                                                                                                                                                                      };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4769..4773

                                                                                                                                                                                                              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

                                                                                                                                                                                                                      Parser.prototype.parseImportDefaultSpecifier = function () {
                                                                                                                                                                                                                          var node = this.createNode();
                                                                                                                                                                                                                          var local = this.parseIdentifierName();
                                                                                                                                                                                                                          return this.finalize(node, new Node.ImportDefaultSpecifier(local));
                                                                                                                                                                                                                      };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4664..4668

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          if (token.type === 9 /* RegularExpression */) {
                                                                                                                                                                                                                              var pattern = token.pattern;
                                                                                                                                                                                                                              var flags = token.flags;
                                                                                                                                                                                                                              t.regex = { pattern: pattern, flags: flags };
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 6682..6686

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

                                                                                                                                                                                                              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 (token.type === 9 /* RegularExpression */) {
                                                                                                                                                                                                                                      var pattern = token.pattern;
                                                                                                                                                                                                                                      var flags = token.flags;
                                                                                                                                                                                                                                      entry.regex = { pattern: pattern, flags: flags };
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2061..2065

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                              return {
                                                                                                                                                                                                                                  type: 7 /* Punctuator */,
                                                                                                                                                                                                                                  value: value,
                                                                                                                                                                                                                                  lineNumber: this.scanner.lineNumber,
                                                                                                                                                                                                                                  lineStart: this.scanner.lineStart,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 583..590
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 638..645

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                              return {
                                                                                                                                                                                                                                  type: 100 /* Identifier */,
                                                                                                                                                                                                                                  value: id,
                                                                                                                                                                                                                                  lineNumber: this.scanner.lineNumber,
                                                                                                                                                                                                                                  lineStart: this.scanner.lineStart,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 583..590
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 599..606

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                              return {
                                                                                                                                                                                                                                  type: 8 /* StringLiteral */,
                                                                                                                                                                                                                                  value: str,
                                                                                                                                                                                                                                  lineNumber: this.scanner.lineNumber,
                                                                                                                                                                                                                                  lineStart: this.scanner.lineStart,
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 599..606
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 638..645

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          else if (token.type === 7 /* Punctuator */ && token.value === '*' && lookaheadPropertyKey) {
                                                                                                                                                                                                                              kind = 'init';
                                                                                                                                                                                                                              computed = this.match('[');
                                                                                                                                                                                                                              key = this.parseObjectPropertyKey();
                                                                                                                                                                                                                              value = this.parseGeneratorMethod();
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2543..2586

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          else if (token.type === 7 /* Punctuator */ && token.value === '*' && lookaheadPropertyKey) {
                                                                                                                                                                                                                              kind = 'init';
                                                                                                                                                                                                                              computed = this.match('[');
                                                                                                                                                                                                                              key = this.parseObjectPropertyKey();
                                                                                                                                                                                                                              value = this.parseGeneratorMethod();
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4612..4618

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

                                                                                                                                                                                                              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.matchJSX(':')) {
                                                                                                                                                                                                                              var namespace = elementName;
                                                                                                                                                                                                                              this.expectJSX(':');
                                                                                                                                                                                                                              var name_1 = this.parseJSXIdentifier();
                                                                                                                                                                                                                              elementName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name_1));
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 751..759

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

                                                                                                                                                                                                              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.matchJSX(':')) {
                                                                                                                                                                                                                              var namespace = identifier;
                                                                                                                                                                                                                              this.expectJSX(':');
                                                                                                                                                                                                                              var name_2 = this.parseJSXIdentifier();
                                                                                                                                                                                                                              attributeName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name_2));
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 731..744

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                                  case 'export':
                                                                                                                                                                                                                                      if (!this.context.isModule) {
                                                                                                                                                                                                                                          this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalExportDeclaration);
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                      statement = this.parseExportDeclaration();
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3359..3364

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                                  case 'import':
                                                                                                                                                                                                                                      if (!this.context.isModule) {
                                                                                                                                                                                                                                          this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalImportDeclaration);
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                      statement = this.parseImportDeclaration();
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3353..3358

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var JSXClosingElement = (function () {
                                                                                                                                                                                                                      function JSXClosingElement(name) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXClosingElement;
                                                                                                                                                                                                                          this.name = name;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1148..1154

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  var ArrayExpression = (function () {
                                                                                                                                                                                                                      function ArrayExpression(elements) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ArrayExpression;
                                                                                                                                                                                                                          this.elements = elements;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1022..1028

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
                                                                                                                                                                                                                                  this.throwError(messages_1.Messages.UnknownLabel, id.name);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3869..3871

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
                                                                                                                                                                                                                                  this.throwError(messages_1.Messages.UnknownLabel, id.name);
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3887..3889

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              else if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
                                                                                                                                                                                                                                  options.stricted = param;
                                                                                                                                                                                                                                  options.message = messages_1.Messages.StrictParamDupe;
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4199..4202

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
                                                                                                                                                                                                                                  options.stricted = param;
                                                                                                                                                                                                                                  options.message = messages_1.Messages.StrictParamDupe;
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4213..4216

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

                                                                                                                                                                                                                  var ImportDefaultSpecifier = (function () {
                                                                                                                                                                                                                      function ImportDefaultSpecifier(local) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ImportDefaultSpecifier;
                                                                                                                                                                                                                          this.local = local;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ThrowStatement = (function () {
                                                                                                                                                                                                                      function ThrowStatement(argument) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ThrowStatement;
                                                                                                                                                                                                                          this.argument = argument;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664

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

                                                                                                                                                                                                                  var ContinueStatement = (function () {
                                                                                                                                                                                                                      function ContinueStatement(label) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ContinueStatement;
                                                                                                                                                                                                                          this.label = label;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ObjectExpression = (function () {
                                                                                                                                                                                                                      function ObjectExpression(properties) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ObjectExpression;
                                                                                                                                                                                                                          this.properties = properties;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var Identifier = (function () {
                                                                                                                                                                                                                      function Identifier(name) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.Identifier;
                                                                                                                                                                                                                          this.name = name;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ImportNamespaceSpecifier = (function () {
                                                                                                                                                                                                                      function ImportNamespaceSpecifier(local) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
                                                                                                                                                                                                                          this.local = local;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var SpreadElement = (function () {
                                                                                                                                                                                                                      function SpreadElement(argument) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.SpreadElement;
                                                                                                                                                                                                                          this.argument = argument;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var JSXExpressionContainer = (function () {
                                                                                                                                                                                                                      function JSXExpressionContainer(expression) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer;
                                                                                                                                                                                                                          this.expression = expression;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ExportAllDeclaration = (function () {
                                                                                                                                                                                                                      function ExportAllDeclaration(source) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ExportAllDeclaration;
                                                                                                                                                                                                                          this.source = source;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var JSXIdentifier = (function () {
                                                                                                                                                                                                                      function JSXIdentifier(name) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier;
                                                                                                                                                                                                                          this.name = name;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ObjectPattern = (function () {
                                                                                                                                                                                                                      function ObjectPattern(properties) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ObjectPattern;
                                                                                                                                                                                                                          this.properties = properties;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ArrayPattern = (function () {
                                                                                                                                                                                                                      function ArrayPattern(elements) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ArrayPattern;
                                                                                                                                                                                                                          this.elements = elements;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ExpressionStatement = (function () {
                                                                                                                                                                                                                      function ExpressionStatement(expression) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ExpressionStatement;
                                                                                                                                                                                                                          this.expression = expression;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var JSXSpreadAttribute = (function () {
                                                                                                                                                                                                                      function JSXSpreadAttribute(argument) {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute;
                                                                                                                                                                                                                          this.argument = argument;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var BlockStatement = (function () {
                                                                                                                                                                                                                      function BlockStatement(body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.BlockStatement;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var BreakStatement = (function () {
                                                                                                                                                                                                                      function BreakStatement(label) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.BreakStatement;
                                                                                                                                                                                                                          this.label = label;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var SequenceExpression = (function () {
                                                                                                                                                                                                                      function SequenceExpression(expressions) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.SequenceExpression;
                                                                                                                                                                                                                          this.expressions = expressions;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var AwaitExpression = (function () {
                                                                                                                                                                                                                      function AwaitExpression(argument) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.AwaitExpression;
                                                                                                                                                                                                                          this.argument = argument;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var RestElement = (function () {
                                                                                                                                                                                                                      function RestElement(argument) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.RestElement;
                                                                                                                                                                                                                          this.argument = argument;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ReturnStatement = (function () {
                                                                                                                                                                                                                      function ReturnStatement(argument) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ReturnStatement;
                                                                                                                                                                                                                          this.argument = argument;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ClassBody = (function () {
                                                                                                                                                                                                                      function ClassBody(body) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ClassBody;
                                                                                                                                                                                                                          this.body = body;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1384..1390
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

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

                                                                                                                                                                                                                  var ExportDefaultDeclaration = (function () {
                                                                                                                                                                                                                      function ExportDefaultDeclaration(declaration) {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ExportDefaultDeclaration;
                                                                                                                                                                                                                          this.declaration = declaration;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 21 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1047..1053
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1055..1061
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1100..1106
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1156..1162
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1235..1241
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1254..1260
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1262..1268
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1288..1294
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1336..1342
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1376..1382
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1411..1417
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1477..1483
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1504..1510
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1512..1518
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1586..1592
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1594..1600
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1625..1631
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1633..1639
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1650..1656
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1658..1664
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1735..1741

                                                                                                                                                                                                              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

                                                                                                                                                                                                                                          case 'x':
                                                                                                                                                                                                                                              var unescaped = this.scanHexEscape(ch);
                                                                                                                                                                                                                                              if (unescaped === null) {
                                                                                                                                                                                                                                                  this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence);
                                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5997..6003

                                                                                                                                                                                                              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

                                                                                                                                                                                                                                          case 'x':
                                                                                                                                                                                                                                              var unescaped = this.scanHexEscape(ch);
                                                                                                                                                                                                                                              if (unescaped === null) {
                                                                                                                                                                                                                                                  this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence);
                                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5870..5876

                                                                                                                                                                                                              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

                                                                                                                                                                                                                  exports.JSXSyntax = {
                                                                                                                                                                                                                      JSXAttribute: 'JSXAttribute',
                                                                                                                                                                                                                      JSXClosingElement: 'JSXClosingElement',
                                                                                                                                                                                                                      JSXElement: 'JSXElement',
                                                                                                                                                                                                                      JSXEmptyExpression: 'JSXEmptyExpression',
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/plupload/plupload.js on lines 42..54

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                                  while (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                                                                                                                                                                                                                                      num += this.source[this.index++];
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5800..5802
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5807..5809

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

                                                                                                                                                                                                                              while (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                                                                                                                                                                                                                                  num += this.source[this.index++];
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5800..5802
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5819..5821

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

                                                                                                                                                                                                                              while (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                                                                                                                                                                                                                                  num += this.source[this.index++];
                                                                                                                                                                                                                              }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5807..5809
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5819..5821

                                                                                                                                                                                                              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 (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
                                                                                                                                                                                                                                          this.tolerateError(messages_1.Messages.InvalidLHSInForIn);
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3811..3813

                                                                                                                                                                                                              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 (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
                                                                                                                                                                                                                                          this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3801..3803

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          return {
                                                                                                                                                                                                                              index: this.scanner.index,
                                                                                                                                                                                                                              line: this.scanner.lineNumber,
                                                                                                                                                                                                                              column: this.scanner.index - this.scanner.lineStart
                                                                                                                                                                                                                          };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 495..499

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

                                                                                                                                                                                                                      Parser.prototype.match = function (value) {
                                                                                                                                                                                                                          return this.lookahead.type === 7 /* Punctuator */ && this.lookahead.value === value;
                                                                                                                                                                                                                      };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2196..2198
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2201..2203

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          return {
                                                                                                                                                                                                                              index: this.scanner.index,
                                                                                                                                                                                                                              line: this.scanner.lineNumber,
                                                                                                                                                                                                                              column: this.scanner.index - this.scanner.lineStart
                                                                                                                                                                                                                          };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 488..492

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

                                                                                                                                                                                                                      Parser.prototype.matchKeyword = function (keyword) {
                                                                                                                                                                                                                          return this.lookahead.type === 4 /* Keyword */ && this.lookahead.value === keyword;
                                                                                                                                                                                                                      };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2192..2194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2201..2203

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

                                                                                                                                                                                                                      Parser.prototype.matchContextualKeyword = function (keyword) {
                                                                                                                                                                                                                          return this.lookahead.type === 3 /* Identifier */ && this.lookahead.value === keyword;
                                                                                                                                                                                                                      };
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2192..2194
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2196..2198

                                                                                                                                                                                                              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

                                                                                                                                                                                                                              else if (token.value === 'set' && lookaheadPropertyKey) {
                                                                                                                                                                                                                                  kind = 'set';
                                                                                                                                                                                                                                  computed = this.match('[');
                                                                                                                                                                                                                                  key = this.parseObjectPropertyKey();
                                                                                                                                                                                                                                  value = this.parseSetterMethod();
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2537..2586

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          else if (token.type === 3 /* Identifier */ && !isAsync && token.value === 'set' && lookaheadPropertyKey) {
                                                                                                                                                                                                                              kind = 'set';
                                                                                                                                                                                                                              computed = this.match('[');
                                                                                                                                                                                                                              key = this.parseObjectPropertyKey();
                                                                                                                                                                                                                              value = this.parseSetterMethod();
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4605..4610

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                                          start: {
                                                                                                                                                                                                                                              line: e.loc.start.line,
                                                                                                                                                                                                                                              column: e.loc.start.column,
                                                                                                                                                                                                                                              offset: e.range[0]
                                                                                                                                                                                                                                          },
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2026..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 53.

                                                                                                                                                                                                              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

                                                                                                                                                                                                                                          end: {
                                                                                                                                                                                                                                              line: e.loc.end.line,
                                                                                                                                                                                                                                              column: e.loc.end.column,
                                                                                                                                                                                                                                              offset: e.range[1]
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 2021..2025

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

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

                                                                                                                                                                                                                          if (!this.match(')') && this.config.tolerant) {
                                                                                                                                                                                                                              this.tolerateUnexpectedToken(this.nextToken());
                                                                                                                                                                                                                              body = this.finalize(this.createNode(), new Node.EmptyStatement());
                                                                                                                                                                                                                          }
                                                                                                                                                                                                                          else {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3656..3667
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3699..3709
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3844..3854

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

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

                                                                                                                                                                                                                          if (!this.match(')') && this.config.tolerant) {
                                                                                                                                                                                                                              this.tolerateUnexpectedToken(this.nextToken());
                                                                                                                                                                                                                              body = this.finalize(this.createNode(), new Node.EmptyStatement());
                                                                                                                                                                                                                          }
                                                                                                                                                                                                                          else {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3656..3667
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3699..3709
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3921..3928

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

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

                                                                                                                                                                                                                          if (!this.match(')') && this.config.tolerant) {
                                                                                                                                                                                                                              this.tolerateUnexpectedToken(this.nextToken());
                                                                                                                                                                                                                              consequent = this.finalize(this.createNode(), new Node.EmptyStatement());
                                                                                                                                                                                                                          }
                                                                                                                                                                                                                          else {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3699..3709
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3844..3854
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3921..3928

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

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

                                                                                                                                                                                                                          if (!this.match(')') && this.config.tolerant) {
                                                                                                                                                                                                                              this.tolerateUnexpectedToken(this.nextToken());
                                                                                                                                                                                                                              body = this.finalize(this.createNode(), new Node.EmptyStatement());
                                                                                                                                                                                                                          }
                                                                                                                                                                                                                          else {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3656..3667
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3844..3854
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 3921..3928

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

                                                                                                                                                                                                              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 (this.values[this.curly - 4] === 'function') {
                                                                                                                                                                                                                                      // Named function, e.g. function f(){} /42/
                                                                                                                                                                                                                                      var check = this.values[this.curly - 5];
                                                                                                                                                                                                                                      regex = check ? !this.beforeFunctionExpression(check) : true;
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 6588..6597

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

                                                                                                                                                                                                              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.values[this.curly - 3] === 'function') {
                                                                                                                                                                                                                                      // Anonymous function, e.g. function(){} /42
                                                                                                                                                                                                                                      var check = this.values[this.curly - 4];
                                                                                                                                                                                                                                      regex = check ? !this.beforeFunctionExpression(check) : false;
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 6593..6597

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                              case 6:
                                                                                                                                                                                                                                  return (id === 'return') || (id === 'typeof') || (id === 'delete') ||
                                                                                                                                                                                                                                      (id === 'switch') || (id === 'export') || (id === 'import');
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5394..5396

                                                                                                                                                                                                              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

                                                                                                                                                                                                                              case 4:
                                                                                                                                                                                                                                  return (id === 'this') || (id === 'else') || (id === 'case') ||
                                                                                                                                                                                                                                      (id === 'void') || (id === 'with') || (id === 'enum');
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5401..5403

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                          var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) {
                                                                                                                                                                                                                              assert_1.assert(idx < args.length, 'Message reference must be in range');
                                                                                                                                                                                                                              return args[idx];
                                                                                                                                                                                                                          });
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1929..1932

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) {
                                                                                                                                                                                                                              assert_1.assert(idx < args.length, 'Message reference must be in range');
                                                                                                                                                                                                                              return args[idx];
                                                                                                                                                                                                                          });
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1944..1947

                                                                                                                                                                                                              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

                                                                                                                                                                                                                                  var declaration = this.match('{') ? this.parseObjectInitializer() :
                                                                                                                                                                                                                                      this.match('[') ? this.parseArrayInitializer() : this.parseAssignmentExpression();
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 783..784

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          return this.matchJSX('{') ? this.parseJSXExpressionAttribute() :
                                                                                                                                                                                                                              this.matchJSX('<') ? this.parseJSXElement() : this.parseJSXStringLiteralAttribute();
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4883..4884

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          return isAsync ? this.finalize(node, new Node.AsyncFunctionDeclaration(id, params, body)) :
                                                                                                                                                                                                                              this.finalize(node, new Node.FunctionDeclaration(id, params, body, isGenerator));
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4407..4408

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          return isAsync ? this.finalize(node, new Node.AsyncFunctionExpression(id, params, body)) :
                                                                                                                                                                                                                              this.finalize(node, new Node.FunctionExpression(id, params, body, isGenerator));
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 4346..4347

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          return {
                                                                                                                                                                                                                              simple: options.simple,
                                                                                                                                                                                                                              params: options.params,
                                                                                                                                                                                                                              stricted: options.stricted,
                                                                                                                                                                                                                              firstRestricted: options.firstRestricted,
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/csslint.js on lines 7850..7856

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

                                                                                                                                                                                                              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

                                                                                                                                                                                                                          return (cp === 0x24) || (cp === 0x5F) ||
                                                                                                                                                                                                                              (cp >= 0x41 && cp <= 0x5A) ||
                                                                                                                                                                                                                              (cp >= 0x61 && cp <= 0x7A) ||
                                                                                                                                                                                                                              (cp === 0x5C) ||
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 992..995

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                          return (cp === 0x24) || (cp === 0x5F) ||
                                                                                                                                                                                                                              (cp >= 0x41 && cp <= 0x5A) ||
                                                                                                                                                                                                                              (cp >= 0x61 && cp <= 0x7A) ||
                                                                                                                                                                                                                              (cp >= 0x30 && cp <= 0x39) ||
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 985..988

                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                  var ThisExpression = (function () {
                                                                                                                                                                                                                      function ThisExpression() {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.ThisExpression;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      return ThisExpression;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1040..1045
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1344..1349
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1369..1374
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1676..1681

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

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

                                                                                                                                                                                                                  var Super = (function () {
                                                                                                                                                                                                                      function Super() {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.Super;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      return Super;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1040..1045
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1344..1349
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1369..1374
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1728..1733

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

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

                                                                                                                                                                                                                  var DebuggerStatement = (function () {
                                                                                                                                                                                                                      function DebuggerStatement() {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.DebuggerStatement;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      return DebuggerStatement;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1040..1045
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1369..1374
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1676..1681
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1728..1733

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

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

                                                                                                                                                                                                                  var EmptyStatement = (function () {
                                                                                                                                                                                                                      function EmptyStatement() {
                                                                                                                                                                                                                          this.type = syntax_1.Syntax.EmptyStatement;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      return EmptyStatement;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1040..1045
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1344..1349
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1676..1681
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1728..1733

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

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

                                                                                                                                                                                                                  var JSXEmptyExpression = (function () {
                                                                                                                                                                                                                      function JSXEmptyExpression() {
                                                                                                                                                                                                                          this.type = jsx_syntax_1.JSXSyntax.JSXEmptyExpression;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      return JSXEmptyExpression;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 4 other locations - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1344..1349
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1369..1374
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1676..1681
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 1728..1733

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

                                                                                                                                                                                                              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 (character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))) {
                                                                                                                                                                                                                              this.throwUnexpectedToken();
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5827..5829

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

                                                                                                                                                                                                              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 (character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))) {
                                                                                                                                                                                                                              this.throwUnexpectedToken();
                                                                                                                                                                                                                          }
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in wp-includes/js/codemirror/esprima.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                              wp-includes/js/codemirror/esprima.js on lines 5681..5683

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

                                                                                                                                                                                                              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