WordPress/WordPress

View on GitHub
wp-includes/js/dist/list-reusable-blocks.js

Summary

Maintainability
F
1 mo
Test Coverage

File list-reusable-blocks.js has 587 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/******/ (() => { // webpackBootstrap
/******/     "use strict";
/******/     // The require scope
/******/     var __webpack_require__ = {};
/******/     
Severity: Major
Found in wp-includes/js/dist/list-reusable-blocks.js - About 1 day to fix

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

      const onSubmit = event => {
        event.preventDefault();
        if (!file) {
          return;
        }
    Severity: Minor
    Found in wp-includes/js/dist/list-reusable-blocks.js - About 1 hr to fix

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

      async function importReusableBlock(file) {
        const fileContent = await readTextFile(file);
        let parsedContent;
        try {
          parsedContent = JSON.parse(fileContent);
      Severity: Minor
      Found in wp-includes/js/dist/list-reusable-blocks.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

          if (parsedContent.__file !== 'wp_block' || !parsedContent.title || !parsedContent.content || typeof parsedContent.title !== 'string' || typeof parsedContent.content !== 'string' || parsedContent.syncStatus && typeof parsedContent.syncStatus !== 'string') {
            throw new Error('Invalid pattern JSON file');
          }
        Severity: Major
        Found in wp-includes/js/dist/list-reusable-blocks.js - About 1 hr to fix

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

          function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
          Severity: Minor
          Found in wp-includes/js/dist/list-reusable-blocks.js - About 45 mins to fix

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

            function __classPrivateFieldSet(receiver, state, value, kind, f) {
            Severity: Minor
            Found in wp-includes/js/dist/list-reusable-blocks.js - About 35 mins to fix

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

              function __generator(thisArg, body) {
                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
                function verb(n) { return function (v) { return step([n, v]); }; }
                function step(op) {
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 5 days to fix
              wp-includes/js/dist/block-directory.js on lines 833..859
              wp-includes/js/dist/commands.js on lines 1666..1692
              wp-includes/js/dist/compose.js on lines 2450..2476
              wp-includes/js/dist/core-data.js on lines 1056..1082
              wp-includes/js/dist/element.js on lines 1001..1027
              wp-includes/js/dist/style-engine.js on lines 171..197

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

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

              function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
                function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
                var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
                var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
                var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 3 days to fix
              wp-includes/js/dist/block-directory.js on lines 774..800
              wp-includes/js/dist/commands.js on lines 1607..1633
              wp-includes/js/dist/compose.js on lines 2391..2417
              wp-includes/js/dist/core-data.js on lines 997..1023
              wp-includes/js/dist/element.js on lines 942..968
              wp-includes/js/dist/style-engine.js on lines 112..138

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

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

              function __asyncGenerator(thisArg, _arguments, generator) {
                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
                var g = generator.apply(thisArg, _arguments || []), i, q = [];
                return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
                function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 2 days to fix
              wp-includes/js/dist/block-directory.js on lines 936..946
              wp-includes/js/dist/commands.js on lines 1769..1779
              wp-includes/js/dist/compose.js on lines 2553..2563
              wp-includes/js/dist/core-data.js on lines 1159..1169
              wp-includes/js/dist/element.js on lines 1104..1114
              wp-includes/js/dist/style-engine.js on lines 274..284

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

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

              function __asyncValues(o) {
                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
                var m = o[Symbol.asyncIterator], i;
                return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 day to fix
              wp-includes/js/dist/block-directory.js on lines 954..960
              wp-includes/js/dist/commands.js on lines 1787..1793
              wp-includes/js/dist/compose.js on lines 2571..2577
              wp-includes/js/dist/core-data.js on lines 1177..1183
              wp-includes/js/dist/element.js on lines 1122..1128
              wp-includes/js/dist/style-engine.js on lines 292..298

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

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

              function noCase(input, options) {
                  if (options === void 0) { options = {}; }
                  var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
                  var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
                  var start = 0;
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 5 other locations - About 1 day to fix
              wp-includes/js/dist/block-directory.js on lines 1138..1151
              wp-includes/js/dist/compose.js on lines 2755..2768
              wp-includes/js/dist/core-data.js on lines 1361..1374
              wp-includes/js/dist/element.js on lines 1306..1319
              wp-includes/js/dist/style-engine.js on lines 476..489

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

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

              function __awaiter(thisArg, _arguments, P, generator) {
                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
                return new (P || (P = Promise))(function (resolve, reject) {
                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 day to fix
              wp-includes/js/dist/block-directory.js on lines 823..831
              wp-includes/js/dist/commands.js on lines 1656..1664
              wp-includes/js/dist/compose.js on lines 2440..2448
              wp-includes/js/dist/core-data.js on lines 1046..1054
              wp-includes/js/dist/element.js on lines 991..999
              wp-includes/js/dist/style-engine.js on lines 161..169

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

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

              function __addDisposableResource(env, value, async) {
                if (value !== null && value !== void 0) {
                  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
                  var dispose;
                  if (async) {
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 day to fix
              wp-includes/js/dist/block-directory.js on lines 1003..1022
              wp-includes/js/dist/commands.js on lines 1836..1855
              wp-includes/js/dist/compose.js on lines 2620..2639
              wp-includes/js/dist/core-data.js on lines 1226..1245
              wp-includes/js/dist/element.js on lines 1171..1190
              wp-includes/js/dist/style-engine.js on lines 341..360

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

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

              function __disposeResources(env) {
                function fail(e) {
                  env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
                  env.hasError = true;
                }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 day to fix
              wp-includes/js/dist/block-directory.js on lines 1029..1048
              wp-includes/js/dist/commands.js on lines 1862..1881
              wp-includes/js/dist/compose.js on lines 2646..2665
              wp-includes/js/dist/core-data.js on lines 1252..1271
              wp-includes/js/dist/element.js on lines 1197..1216
              wp-includes/js/dist/style-engine.js on lines 367..386

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

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

              function __read(o, n) {
                var m = typeof Symbol === "function" && o[Symbol.iterator];
                if (!m) return o;
                var i = m.call(o), r, ar = [], e;
                try {
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 day to fix
              wp-includes/js/dist/block-directory.js on lines 889..904
              wp-includes/js/dist/commands.js on lines 1722..1737
              wp-includes/js/dist/compose.js on lines 2506..2521
              wp-includes/js/dist/core-data.js on lines 1112..1127
              wp-includes/js/dist/element.js on lines 1057..1072
              wp-includes/js/dist/style-engine.js on lines 227..242

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

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

              function __decorate(decorators, target, key, desc) {
                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                return c > 3 && r && Object.defineProperty(target, key, r), r;
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 day to fix
              wp-includes/js/dist/block-directory.js on lines 763..768
              wp-includes/js/dist/commands.js on lines 1596..1601
              wp-includes/js/dist/compose.js on lines 2380..2385
              wp-includes/js/dist/core-data.js on lines 986..991
              wp-includes/js/dist/element.js on lines 931..936
              wp-includes/js/dist/style-engine.js on lines 101..106

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

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

              function __rest(s, e) {
                var t = {};
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
                    t[p] = s[p];
                if (s != null && typeof Object.getOwnPropertySymbols === "function")
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 day to fix
              wp-includes/js/dist/block-directory.js on lines 751..761
              wp-includes/js/dist/commands.js on lines 1584..1594
              wp-includes/js/dist/compose.js on lines 2368..2378
              wp-includes/js/dist/core-data.js on lines 974..984
              wp-includes/js/dist/element.js on lines 919..929
              wp-includes/js/dist/style-engine.js on lines 89..99

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

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

              var __createBinding = Object.create ? (function(o, m, k, k2) {
                if (k2 === undefined) k2 = k;
                var desc = Object.getOwnPropertyDescriptor(m, k);
                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                    desc = { enumerable: true, get: function() { return m[k]; } };
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 7 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 861..871
              wp-includes/js/dist/commands.js on lines 1694..1704
              wp-includes/js/dist/compose.js on lines 2478..2488
              wp-includes/js/dist/core-data.js on lines 1084..1094
              wp-includes/js/dist/element.js on lines 1029..1039
              wp-includes/js/dist/style-engine.js on lines 199..209

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

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

              function __values(o) {
                var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
                if (m) return m.call(o);
                if (o && typeof o.length === "number") return {
                    next: function () {
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 6 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 877..887
              wp-includes/js/dist/commands.js on lines 1710..1720
              wp-includes/js/dist/compose.js on lines 2494..2504
              wp-includes/js/dist/core-data.js on lines 1100..1110
              wp-includes/js/dist/element.js on lines 1045..1055
              wp-includes/js/dist/style-engine.js on lines 215..225

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 159.

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

              function __asyncDelegator(o) {
                var i, p;
                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
                function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 6 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 948..952
              wp-includes/js/dist/commands.js on lines 1781..1785
              wp-includes/js/dist/compose.js on lines 2565..2569
              wp-includes/js/dist/core-data.js on lines 1171..1175
              wp-includes/js/dist/element.js on lines 1116..1120
              wp-includes/js/dist/style-engine.js on lines 286..290

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

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

              function __spreadArray(to, from, pack) {
                if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
                    if (ar || !(i in from)) {
                        if (!ar) ar = Array.prototype.slice.call(from, 0, i);
                        ar[i] = from[i];
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 6 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 922..930
              wp-includes/js/dist/commands.js on lines 1755..1763
              wp-includes/js/dist/compose.js on lines 2539..2547
              wp-includes/js/dist/core-data.js on lines 1145..1153
              wp-includes/js/dist/element.js on lines 1090..1098
              wp-includes/js/dist/style-engine.js on lines 260..268

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

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

              function __spreadArrays() {
                for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
                for (var r = Array(s), k = 0, i = 0; i < il; i++)
                    for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
                        r[k] = a[j];
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 5 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 914..920
              wp-includes/js/dist/commands.js on lines 1747..1753
              wp-includes/js/dist/compose.js on lines 2531..2537
              wp-includes/js/dist/core-data.js on lines 1137..1143
              wp-includes/js/dist/element.js on lines 1082..1088
              wp-includes/js/dist/style-engine.js on lines 252..258

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

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

              /* harmony default export */ const tslib_es6 = ({
                __extends,
                __assign,
                __rest,
                __decorate,
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 5 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 1050..1078
              wp-includes/js/dist/commands.js on lines 1883..1911
              wp-includes/js/dist/compose.js on lines 2667..2695
              wp-includes/js/dist/core-data.js on lines 1273..1301
              wp-includes/js/dist/element.js on lines 1218..1246
              wp-includes/js/dist/style-engine.js on lines 388..416

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

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

              var __assign = function() {
                __assign = Object.assign || function __assign(t) {
                    for (var s, i = 1, n = arguments.length; i < n; i++) {
                        s = arguments[i];
                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 5 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 740..749
              wp-includes/js/dist/commands.js on lines 1573..1582
              wp-includes/js/dist/compose.js on lines 2357..2366
              wp-includes/js/dist/core-data.js on lines 963..972
              wp-includes/js/dist/element.js on lines 908..917
              wp-includes/js/dist/style-engine.js on lines 78..87

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

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

              function __classPrivateFieldSet(receiver, state, value, kind, f) {
                if (kind === "m") throw new TypeError("Private method is not writable");
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 5 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 991..996
              wp-includes/js/dist/commands.js on lines 1824..1829
              wp-includes/js/dist/compose.js on lines 2608..2613
              wp-includes/js/dist/core-data.js on lines 1214..1219
              wp-includes/js/dist/element.js on lines 1159..1164
              wp-includes/js/dist/style-engine.js on lines 329..334

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

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

              var extendStatics = function(d, b) {
                extendStatics = Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                    function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
                return extendStatics(d, b);
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 4 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 725..730
              wp-includes/js/dist/commands.js on lines 1558..1563
              wp-includes/js/dist/compose.js on lines 2342..2347
              wp-includes/js/dist/core-data.js on lines 948..953
              wp-includes/js/dist/element.js on lines 893..898
              wp-includes/js/dist/style-engine.js on lines 63..68

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

              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

              /******/     (() => {
              /******/         // define getter functions for harmony exports
              /******/         __webpack_require__.d = (exports, definition) => {
              /******/             for(var key in definition) {
              /******/                 if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 21 other locations - About 4 hrs to fix
              wp-includes/js/dist/a11y.js on lines 20..29
              wp-includes/js/dist/block-directory.js on lines 20..29
              wp-includes/js/dist/commands.js on lines 186..195
              wp-includes/js/dist/compose.js on lines 2245..2254
              wp-includes/js/dist/core-data.js on lines 627..636
              wp-includes/js/dist/customize-widgets.js on lines 124..133
              wp-includes/js/dist/data-controls.js on lines 20..29
              wp-includes/js/dist/data.js on lines 499..508
              wp-includes/js/dist/dom.js on lines 20..29
              wp-includes/js/dist/edit-post.js on lines 20..29
              wp-includes/js/dist/edit-widgets.js on lines 20..29
              wp-includes/js/dist/i18n.js on lines 283..292
              wp-includes/js/dist/media-utils.js on lines 20..29
              wp-includes/js/dist/nux.js on lines 20..29
              wp-includes/js/dist/plugins.js on lines 20..29
              wp-includes/js/dist/preferences-persistence.js on lines 20..29
              wp-includes/js/dist/preferences.js on lines 20..29
              wp-includes/js/dist/server-side-render.js on lines 124..133
              wp-includes/js/dist/undo-manager.js on lines 52..61
              wp-includes/js/dist/url.js on lines 532..541
              wp-includes/js/dist/widgets.js on lines 20..29

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

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

              function __classPrivateFieldGet(receiver, state, kind, f) {
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 4 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 985..989
              wp-includes/js/dist/commands.js on lines 1818..1822
              wp-includes/js/dist/compose.js on lines 2602..2606
              wp-includes/js/dist/core-data.js on lines 1208..1212
              wp-includes/js/dist/element.js on lines 1153..1157
              wp-includes/js/dist/style-engine.js on lines 323..327

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

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

              var SUPPORTED_LOCALE = {
                  tr: {
                      regexp: /\u0130|\u0049|\u0049\u0307/g,
                      map: {
                          Ä°: "\u0069",
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 5 other locations - About 4 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 1084..1112
              wp-includes/js/dist/compose.js on lines 2701..2729
              wp-includes/js/dist/core-data.js on lines 1307..1335
              wp-includes/js/dist/element.js on lines 1252..1280
              wp-includes/js/dist/style-engine.js on lines 422..450

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

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

              function __extends(d, b) {
                if (typeof b !== "function" && b !== null)
                    throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
                extendStatics(d, b);
                function __() { this.constructor = d; }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 4 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 732..738
              wp-includes/js/dist/commands.js on lines 1565..1571
              wp-includes/js/dist/compose.js on lines 2349..2355
              wp-includes/js/dist/core-data.js on lines 955..961
              wp-includes/js/dist/element.js on lines 900..906
              wp-includes/js/dist/style-engine.js on lines 70..76

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

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

              /******/     (() => {
              /******/         // define __esModule on exports
              /******/         __webpack_require__.r = (exports) => {
              /******/             if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
              /******/                 Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 41 other locations - About 4 hrs to fix
              wp-includes/js/dist/a11y.js on lines 37..45
              wp-includes/js/dist/annotations.js on lines 25..33
              wp-includes/js/dist/autop.js on lines 25..33
              wp-includes/js/dist/blob.js on lines 25..33
              wp-includes/js/dist/block-directory.js on lines 37..45
              wp-includes/js/dist/block-serialization-default-parser.js on lines 25..33
              wp-includes/js/dist/compose.js on lines 2262..2270
              wp-includes/js/dist/core-commands.js on lines 25..33
              wp-includes/js/dist/core-data.js on lines 644..652
              wp-includes/js/dist/customize-widgets.js on lines 141..149
              wp-includes/js/dist/data-controls.js on lines 37..45
              wp-includes/js/dist/data.js on lines 516..524
              wp-includes/js/dist/dom.js on lines 37..45
              wp-includes/js/dist/edit-post.js on lines 37..45
              wp-includes/js/dist/edit-widgets.js on lines 37..45
              wp-includes/js/dist/element.js on lines 71..79
              wp-includes/js/dist/escape-html.js on lines 25..33
              wp-includes/js/dist/hooks.js on lines 25..33
              wp-includes/js/dist/html-entities.js on lines 25..33
              wp-includes/js/dist/i18n.js on lines 300..308
              wp-includes/js/dist/is-shallow-equal.js on lines 25..33
              wp-includes/js/dist/keyboard-shortcuts.js on lines 25..33
              wp-includes/js/dist/keycodes.js on lines 25..33
              wp-includes/js/dist/media-utils.js on lines 37..45
              wp-includes/js/dist/notices.js on lines 25..33
              wp-includes/js/dist/nux.js on lines 37..45
              wp-includes/js/dist/patterns.js on lines 25..33
              wp-includes/js/dist/plugins.js on lines 37..45
              wp-includes/js/dist/preferences-persistence.js on lines 37..45
              wp-includes/js/dist/preferences.js on lines 37..45
              wp-includes/js/dist/primitives.js on lines 25..33
              wp-includes/js/dist/priority-queue.js on lines 280..288
              wp-includes/js/dist/private-apis.js on lines 25..33
              wp-includes/js/dist/reusable-blocks.js on lines 25..33
              wp-includes/js/dist/router.js on lines 25..33
              wp-includes/js/dist/style-engine.js on lines 25..33
              wp-includes/js/dist/undo-manager.js on lines 69..77
              wp-includes/js/dist/url.js on lines 549..557
              wp-includes/js/dist/viewport.js on lines 25..33
              wp-includes/js/dist/widgets.js on lines 37..45
              wp-includes/js/dist/wordcount.js on lines 25..33

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

              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

              /******/     (() => {
              /******/         // getDefaultExport function for compatibility with non-harmony modules
              /******/         __webpack_require__.n = (module) => {
              /******/             var getter = module && module.__esModule ?
              /******/                 () => (module['default']) :
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 21 other locations - About 3 hrs to fix
              wp-includes/js/dist/a11y.js on lines 8..17
              wp-includes/js/dist/block-directory.js on lines 8..17
              wp-includes/js/dist/commands.js on lines 174..183
              wp-includes/js/dist/compose.js on lines 2233..2242
              wp-includes/js/dist/core-data.js on lines 615..624
              wp-includes/js/dist/customize-widgets.js on lines 112..121
              wp-includes/js/dist/data-controls.js on lines 8..17
              wp-includes/js/dist/data.js on lines 487..496
              wp-includes/js/dist/dom.js on lines 8..17
              wp-includes/js/dist/edit-post.js on lines 8..17
              wp-includes/js/dist/edit-widgets.js on lines 8..17
              wp-includes/js/dist/i18n.js on lines 271..280
              wp-includes/js/dist/media-utils.js on lines 8..17
              wp-includes/js/dist/nux.js on lines 8..17
              wp-includes/js/dist/plugins.js on lines 8..17
              wp-includes/js/dist/preferences-persistence.js on lines 8..17
              wp-includes/js/dist/preferences.js on lines 8..17
              wp-includes/js/dist/server-side-render.js on lines 112..121
              wp-includes/js/dist/undo-manager.js on lines 40..49
              wp-includes/js/dist/url.js on lines 520..529
              wp-includes/js/dist/widgets.js on lines 8..17

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

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

              function __runInitializers(thisArg, initializers, value) {
                var useValue = arguments.length > 2;
                for (var i = 0; i < initializers.length; i++) {
                    value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
                }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 3 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 802..808
              wp-includes/js/dist/commands.js on lines 1635..1641
              wp-includes/js/dist/compose.js on lines 2419..2425
              wp-includes/js/dist/core-data.js on lines 1025..1031
              wp-includes/js/dist/element.js on lines 970..976
              wp-includes/js/dist/style-engine.js on lines 140..146

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

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

              function __importStar(mod) {
                if (mod && mod.__esModule) return mod;
                var result = {};
                if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
                __setModuleDefault(result, mod);
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 3 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 973..979
              wp-includes/js/dist/commands.js on lines 1806..1812
              wp-includes/js/dist/compose.js on lines 2590..2596
              wp-includes/js/dist/core-data.js on lines 1196..1202
              wp-includes/js/dist/element.js on lines 1141..1147
              wp-includes/js/dist/style-engine.js on lines 311..317

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

              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 (parsedContent.__file !== 'wp_block' || !parsedContent.title || !parsedContent.content || typeof parsedContent.title !== 'string' || typeof parsedContent.content !== 'string' || parsedContent.syncStatus && typeof parsedContent.syncStatus !== 'string') {
                  throw new Error('Invalid pattern JSON file');
                }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 1 other location - About 2 hrs to fix
              wp-includes/js/dist/patterns.js on lines 166..168

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

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

              function __setFunctionName(f, name, prefix) {
                if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
                return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
              };
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 2 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 814..817
              wp-includes/js/dist/commands.js on lines 1647..1650
              wp-includes/js/dist/compose.js on lines 2431..2434
              wp-includes/js/dist/core-data.js on lines 1037..1040
              wp-includes/js/dist/element.js on lines 982..985
              wp-includes/js/dist/style-engine.js on lines 152..155

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

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

              function localeLowerCase(str, locale) {
                  var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
                  if (lang)
                      return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
                  return lowerCase(str);
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 5 other locations - About 2 hrs to fix
              wp-includes/js/dist/block-directory.js on lines 1116..1121
              wp-includes/js/dist/compose.js on lines 2733..2738
              wp-includes/js/dist/core-data.js on lines 1339..1344
              wp-includes/js/dist/element.js on lines 1284..1289
              wp-includes/js/dist/style-engine.js on lines 454..459

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

              function __classPrivateFieldIn(state, receiver) {
                if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
                return typeof state === "function" ? receiver === state : state.has(receiver);
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 hr to fix
              wp-includes/js/dist/block-directory.js on lines 998..1001
              wp-includes/js/dist/commands.js on lines 1831..1834
              wp-includes/js/dist/compose.js on lines 2615..2618
              wp-includes/js/dist/core-data.js on lines 1221..1224
              wp-includes/js/dist/element.js on lines 1166..1169
              wp-includes/js/dist/style-engine.js on lines 336..339

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

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

              var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
                var e = new Error(message);
                return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
              };
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 hr to fix
              wp-includes/js/dist/block-directory.js on lines 1024..1027
              wp-includes/js/dist/commands.js on lines 1857..1860
              wp-includes/js/dist/compose.js on lines 2641..2644
              wp-includes/js/dist/core-data.js on lines 1247..1250
              wp-includes/js/dist/element.js on lines 1192..1195
              wp-includes/js/dist/style-engine.js on lines 362..365

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

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

              function __spread() {
                for (var ar = [], i = 0; i < arguments.length; i++)
                    ar = ar.concat(__read(arguments[i]));
                return ar;
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 hr to fix
              wp-includes/js/dist/block-directory.js on lines 907..911
              wp-includes/js/dist/commands.js on lines 1740..1744
              wp-includes/js/dist/compose.js on lines 2524..2528
              wp-includes/js/dist/core-data.js on lines 1130..1134
              wp-includes/js/dist/element.js on lines 1075..1079
              wp-includes/js/dist/style-engine.js on lines 245..249

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 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 7 locations. Consider refactoring.
              Open

              var __setModuleDefault = Object.create ? (function(o, v) {
                Object.defineProperty(o, "default", { enumerable: true, value: v });
              }) : function(o, v) {
                o["default"] = v;
              };
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 hr to fix
              wp-includes/js/dist/block-directory.js on lines 967..971
              wp-includes/js/dist/commands.js on lines 1800..1804
              wp-includes/js/dist/compose.js on lines 2584..2588
              wp-includes/js/dist/core-data.js on lines 1190..1194
              wp-includes/js/dist/element.js on lines 1135..1139
              wp-includes/js/dist/style-engine.js on lines 305..309

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

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

              function replace(input, re, value) {
                  if (re instanceof RegExp)
                      return input.replace(re, value);
                  return re.reduce(function (input, re) { return input.replace(re, value); }, input);
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 5 other locations - About 1 hr to fix
              wp-includes/js/dist/block-directory.js on lines 1155..1159
              wp-includes/js/dist/compose.js on lines 2772..2776
              wp-includes/js/dist/core-data.js on lines 1378..1382
              wp-includes/js/dist/element.js on lines 1323..1327
              wp-includes/js/dist/style-engine.js on lines 493..497

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

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

              function __exportStar(m, o) {
                for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 hr to fix
              wp-includes/js/dist/block-directory.js on lines 873..875
              wp-includes/js/dist/commands.js on lines 1706..1708
              wp-includes/js/dist/compose.js on lines 2490..2492
              wp-includes/js/dist/core-data.js on lines 1096..1098
              wp-includes/js/dist/element.js on lines 1041..1043
              wp-includes/js/dist/style-engine.js on lines 211..213

              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

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

              function __makeTemplateObject(cooked, raw) {
                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
                return cooked;
              };
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 1 hr to fix
              wp-includes/js/dist/block-directory.js on lines 962..965
              wp-includes/js/dist/commands.js on lines 1795..1798
              wp-includes/js/dist/compose.js on lines 2579..2582
              wp-includes/js/dist/core-data.js on lines 1185..1188
              wp-includes/js/dist/element.js on lines 1130..1133
              wp-includes/js/dist/style-engine.js on lines 300..303

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

              /******/     (() => {
              /******/         __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
              /******/     })();
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 42 other locations - About 1 hr to fix
              wp-includes/js/dist/a11y.js on lines 32..34
              wp-includes/js/dist/annotations.js on lines 20..22
              wp-includes/js/dist/autop.js on lines 20..22
              wp-includes/js/dist/blob.js on lines 20..22
              wp-includes/js/dist/block-directory.js on lines 32..34
              wp-includes/js/dist/block-serialization-default-parser.js on lines 20..22
              wp-includes/js/dist/commands.js on lines 198..200
              wp-includes/js/dist/compose.js on lines 2257..2259
              wp-includes/js/dist/core-commands.js on lines 20..22
              wp-includes/js/dist/core-data.js on lines 639..641
              wp-includes/js/dist/customize-widgets.js on lines 136..138
              wp-includes/js/dist/data-controls.js on lines 32..34
              wp-includes/js/dist/data.js on lines 511..513
              wp-includes/js/dist/dom.js on lines 32..34
              wp-includes/js/dist/edit-post.js on lines 32..34
              wp-includes/js/dist/edit-widgets.js on lines 32..34
              wp-includes/js/dist/element.js on lines 66..68
              wp-includes/js/dist/escape-html.js on lines 20..22
              wp-includes/js/dist/hooks.js on lines 20..22
              wp-includes/js/dist/html-entities.js on lines 20..22
              wp-includes/js/dist/i18n.js on lines 295..297
              wp-includes/js/dist/is-shallow-equal.js on lines 20..22
              wp-includes/js/dist/keyboard-shortcuts.js on lines 20..22
              wp-includes/js/dist/keycodes.js on lines 20..22
              wp-includes/js/dist/media-utils.js on lines 32..34
              wp-includes/js/dist/notices.js on lines 20..22
              wp-includes/js/dist/nux.js on lines 32..34
              wp-includes/js/dist/patterns.js on lines 20..22
              wp-includes/js/dist/plugins.js on lines 32..34
              wp-includes/js/dist/preferences-persistence.js on lines 32..34
              wp-includes/js/dist/preferences.js on lines 32..34
              wp-includes/js/dist/primitives.js on lines 20..22
              wp-includes/js/dist/priority-queue.js on lines 275..277
              wp-includes/js/dist/private-apis.js on lines 20..22
              wp-includes/js/dist/reusable-blocks.js on lines 20..22
              wp-includes/js/dist/router.js on lines 20..22
              wp-includes/js/dist/style-engine.js on lines 20..22
              wp-includes/js/dist/undo-manager.js on lines 64..66
              wp-includes/js/dist/url.js on lines 544..546
              wp-includes/js/dist/viewport.js on lines 20..22
              wp-includes/js/dist/widgets.js on lines 32..34
              wp-includes/js/dist/wordcount.js on lines 20..22

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

              function paramCase(input, options) {
                  if (options === void 0) { options = {}; }
                  return dotCase(input, __assign({ delimiter: "-" }, options));
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 5 other locations - About 50 mins to fix
              wp-includes/js/dist/element.js on lines 1332..1335
              wp-includes/js/dist/element.js on lines 1340..1343
              wp-includes/js/dist/list-reusable-blocks.js on lines 512..515
              wp-includes/js/dist/style-engine.js on lines 502..505
              wp-includes/js/dist/style-engine.js on lines 510..513

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

              function dotCase(input, options) {
                  if (options === void 0) { options = {}; }
                  return noCase(input, __assign({ delimiter: "." }, options));
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 5 other locations - About 50 mins to fix
              wp-includes/js/dist/element.js on lines 1332..1335
              wp-includes/js/dist/element.js on lines 1340..1343
              wp-includes/js/dist/list-reusable-blocks.js on lines 520..523
              wp-includes/js/dist/style-engine.js on lines 502..505
              wp-includes/js/dist/style-engine.js on lines 510..513

              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

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

              function __metadata(metadataKey, metadataValue) {
                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
              }
              Severity: Major
              Found in wp-includes/js/dist/list-reusable-blocks.js and 6 other locations - About 35 mins to fix
              wp-includes/js/dist/block-directory.js on lines 819..821
              wp-includes/js/dist/commands.js on lines 1652..1654
              wp-includes/js/dist/compose.js on lines 2436..2438
              wp-includes/js/dist/core-data.js on lines 1042..1044
              wp-includes/js/dist/element.js on lines 987..989
              wp-includes/js/dist/style-engine.js on lines 157..159

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 46.

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

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

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

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

              Refactorings

              Further Reading

              There are no issues that match your filters.

              Category
              Status