WordPress/WordPress

View on GitHub
wp-includes/js/dist/edit-widgets.js

Summary

Maintainability
F
1 mo
Test Coverage

File edit-widgets.js has 3077 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/edit-widgets.js - About 1 wk to fix

    Function WelcomeGuide has 75 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function WelcomeGuide() {
      var _widgetAreas$filter$l;
      const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'welcomeGuide'), []);
      const {
        toggle
    Severity: Major
    Found in wp-includes/js/dist/edit-widgets.js - About 3 hrs to fix

      Function KeyboardShortcutsRegister has 75 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function KeyboardShortcutsRegister() {
        // Registering the shortcuts.
        const {
          registerShortcut
        } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_keyboardShortcuts_namespaceObject.store);
      Severity: Major
      Found in wp-includes/js/dist/edit-widgets.js - About 3 hrs to fix

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

        function MoreMenu() {
          const [isKeyboardShortcutsModalActive, setIsKeyboardShortcutsModalVisible] = (0,external_wp_element_namespaceObject.useState)(false);
          const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive);
          (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-widgets/keyboard-shortcuts', toggleKeyboardShortcutsModal);
          const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
        Severity: Major
        Found in wp-includes/js/dist/edit-widgets.js - About 2 hrs to fix

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

          function Sidebar() {
            const {
              currentArea,
              hasSelectedNonAreaBlock,
              isGeneralSidebarOpen,
          Severity: Major
          Found in wp-includes/js/dist/edit-widgets.js - About 2 hrs to fix

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

            function DocumentTools() {
              const isMediumViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
              const {
                isInserterOpen,
                isListViewOpen,
            Severity: Major
            Found in wp-includes/js/dist/edit-widgets.js - About 2 hrs to fix

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

              function InserterSidebar() {
                const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium', '<');
                const {
                  rootClientId,
                  insertionIndex
              Severity: Minor
              Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

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

                function ListViewSidebar() {
                  const {
                    setIsListViewOpened
                  } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
                  const {
                Severity: Minor
                Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

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

                  const withMoveToWidgetAreaToolbarItem = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
                    const {
                      clientId,
                      name: blockName
                    } = props;
                  Severity: Minor
                  Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

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

                    function Notices() {
                      const {
                        removeNotice
                      } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
                      const {
                    Severity: Minor
                    Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

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

                      const useWidgetLibraryInsertionPoint = () => {
                        const firstRootId = (0,external_wp_data_namespaceObject.useSelect)(select => {
                          // Default to the first widget area
                          const {
                            getEntityRecord
                      Severity: Minor
                      Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

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

                        function complementaryAreas(state = {}, action) {
                          switch (action.type) {
                            case 'SET_DEFAULT_COMPLEMENTARY_AREA':
                              {
                                const {
                        Severity: Minor
                        Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

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

                          const useIsDraggingWithin = elementRef => {
                            const [isDraggingWithin, setIsDraggingWithin] = (0,external_wp_element_namespaceObject.useState)(false);
                            (0,external_wp_element_namespaceObject.useEffect)(() => {
                              const {
                                ownerDocument
                          Severity: Minor
                          Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

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

                            function Header() {
                              const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
                              const blockToolbarRef = (0,external_wp_element_namespaceObject.useRef)();
                              const {
                                hasFixedToolbar
                            Severity: Minor
                            Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

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

                                const settings = (0,external_wp_element_namespaceObject.useMemo)(() => {
                                  let mediaUploadBlockEditor;
                                  if (mediaPermissions.canCreate) {
                                    mediaUploadBlockEditor = ({
                                      onError,
                              Severity: Minor
                              Found in wp-includes/js/dist/edit-widgets.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
                                Severity: Major
                                Found in wp-includes/js/dist/edit-widgets.js - About 40 mins to fix

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

                                  function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
                                  Severity: Minor
                                  Found in wp-includes/js/dist/edit-widgets.js - About 35 mins to fix

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

                                    const textFormattingShortcuts = [{
                                      keyCombination: {
                                        modifier: 'primary',
                                        character: 'b'
                                      },
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 2 days to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 591..660

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

                                    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 r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 5 other locations - About 7 hrs to fix
                                    wp-includes/js/dist/commands.js on lines 3140..3140
                                    wp-includes/js/dist/customize-widgets.js on lines 290..290
                                    wp-includes/js/dist/edit-post.js on lines 322..322
                                    wp-includes/js/dist/primitives.js on lines 59..59
                                    wp-includes/js/dist/widgets.js on lines 101..101

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    function DynamicShortcut({
                                      name
                                    }) {
                                      const {
                                        keyCombination,
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 6 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 723..750

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 169.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    function Shortcut({
                                      description,
                                      keyCombination,
                                      aliases = [],
                                      ariaLabel
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 6 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 690..708

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                        }, {
                                          image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
                                            nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
                                            animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
                                          }),
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 6 hrs to fix
                                    wp-includes/js/dist/edit-post.js on lines 2707..2719

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

                                    const ShortcutList = ({
                                      shortcuts
                                    }) =>
                                    /*
                                     * Disable reason: The `list` ARIA role is redundant but
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 4 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 774..793

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

                                    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/edit-widgets.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/i18n.js on lines 283..292
                                    wp-includes/js/dist/list-reusable-blocks.js on lines 20..29
                                    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

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

                                      }, onClose => (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isLargeViewport && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, {
                                        label: (0,external_wp_i18n_namespaceObject._x)('View', 'noun')
                                      }, (0,external_React_namespaceObject.createElement)(external_wp_preferences_namespaceObject.PreferenceToggleMenuItem, {
                                        scope: "core/edit-widgets",
                                        name: "fixedToolbar",
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 4 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 900..909

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

                                    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/edit-widgets.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/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/list-reusable-blocks.js on lines 37..45
                                    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 2 locations. Consider refactoring.
                                    Open

                                    const ShortcutCategorySection = ({
                                      title,
                                      categoryName,
                                      additionalShortcuts = []
                                    }) => {
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 3 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 805..817

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 114.

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

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

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

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

                                    Refactorings

                                    Further Reading

                                    Similar blocks of code found in 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/edit-widgets.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/i18n.js on lines 271..280
                                    wp-includes/js/dist/list-reusable-blocks.js on lines 8..17
                                    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

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

                                        }, {
                                          image: (0,external_React_namespaceObject.createElement)(WelcomeGuideImage, {
                                            nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-editor.svg",
                                            animatedSrc: "https://s.w.org/images/block-editor/welcome-editor.gif"
                                          }),
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 3 other locations - About 3 hrs to fix
                                    wp-includes/js/dist/edit-post.js on lines 2672..2682
                                    wp-includes/js/dist/edit-post.js on lines 2682..2692
                                    wp-includes/js/dist/edit-post.js on lines 2746..2756

                                    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

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

                                      const coreBlocks = (0,external_wp_blockLibrary_namespaceObject.__experimentalGetCoreBlocks)().filter(block => {
                                        return !(disabledBlocks.includes(block.name) || block.name.startsWith('core/post') || block.name.startsWith('core/query') || block.name.startsWith('core/site') || block.name.startsWith('core/navigation'));
                                      });
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 3 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 2623..2625

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
                                        role: "menuitem",
                                        icon: library_external,
                                        href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/block-based-widgets-editor/'),
                                        target: "_blank",
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 3 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 920..929

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const ShortcutSection = ({
                                      title,
                                      shortcuts,
                                      className
                                    }) => (0,external_React_namespaceObject.createElement)("section", {
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 3 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 794..804

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    __webpack_require__.d(actions_namespaceObject, {
                                      closeModal: () => (closeModal),
                                      disableComplementaryArea: () => (disableComplementaryArea),
                                      enableComplementaryArea: () => (enableComplementaryArea),
                                      openModal: () => (openModal),
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 3 hrs to fix
                                    wp-includes/js/dist/data.js on lines 567..578

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                        registerShortcut({
                                          name: 'core/edit-widgets/redo',
                                          category: 'global',
                                          description: (0,external_wp_i18n_namespaceObject.__)('Redo your last undo.'),
                                          keyCombination: {
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 2 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 1529..1545

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      }), (0,external_React_namespaceObject.createElement)(ShortcutCategorySection, {
                                        title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'),
                                        categoryName: "block",
                                        additionalShortcuts: [{
                                          keyCombination: {
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 2 hrs to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 851..862

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    function setFeatureDefaults(scope, defaults) {
                                      return function ({
                                        registry
                                      }) {
                                        external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureDefaults`, {
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 2 hrs to fix
                                    wp-includes/js/dist/edit-widgets.js on lines 517..527

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    function toggleFeature(scope, featureName) {
                                      return function ({
                                        registry
                                      }) {
                                        external_wp_deprecated_default()(`dispatch( 'core/interface' ).toggleFeature`, {
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 2 hrs to fix
                                    wp-includes/js/dist/edit-widgets.js on lines 559..569

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    function WelcomeGuideImage({
                                      nonAnimatedSrc,
                                      animatedSrc
                                    }) {
                                      return (0,external_React_namespaceObject.createElement)("picture", {
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 2 hrs to fix
                                    wp-includes/js/dist/edit-post.js on lines 2631..2646

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 83.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const drawerLeft = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      width: "24",
                                      height: "24",
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 3 other locations - About 2 hrs to fix
                                    wp-includes/js/dist/edit-post.js on lines 2804..2813
                                    wp-includes/js/dist/edit-post.js on lines 2822..2831
                                    wp-includes/js/dist/edit-widgets.js on lines 3095..3104

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 82.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const drawerRight = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      width: "24",
                                      height: "24",
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 3 other locations - About 2 hrs to fix
                                    wp-includes/js/dist/edit-post.js on lines 2804..2813
                                    wp-includes/js/dist/edit-post.js on lines 2822..2831
                                    wp-includes/js/dist/edit-widgets.js on lines 3077..3086

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 82.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      }, shortcuts.map((character, index) => {
                                        if (character === '+') {
                                          return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, {
                                            key: index
                                          }, character);
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 678..688

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

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                        if (mediaPermissions.canCreate) {
                                          mediaUploadBlockEditor = ({
                                            onError,
                                            ...argumentsObject
                                          }) => {
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 1654..1667

                                    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

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

                                    function CopyButton({
                                      text,
                                      children
                                    }) {
                                      const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 214..223

                                    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

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

                                    const starEmpty = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      fillRule: "evenodd",
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1386..1393

                                    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

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

                                      }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
                                        onClick: () => {
                                          setIsKeyboardShortcutsModalVisible(true);
                                        },
                                        shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h')
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 911..916

                                    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

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

                                    const plus = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const redo = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const closeSmall = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const listView = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      viewBox: "0 0 24 24",
                                      xmlns: "http://www.w3.org/2000/svg"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const moreVertical = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const undo = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const check = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const external = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const starFilled = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const close_close = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3113..3118
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    const blockDefault = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
                                      xmlns: "http://www.w3.org/2000/svg",
                                      viewBox: "0 0 24 24"
                                    }, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
                                      d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 54 other locations - About 1 hr to fix
                                    wp-includes/js/dist/block-directory.js on lines 1358..1363
                                    wp-includes/js/dist/block-directory.js on lines 1372..1377
                                    wp-includes/js/dist/block-directory.js on lines 1760..1765
                                    wp-includes/js/dist/commands.js on lines 3191..3196
                                    wp-includes/js/dist/core-commands.js on lines 59..64
                                    wp-includes/js/dist/core-commands.js on lines 105..110
                                    wp-includes/js/dist/core-commands.js on lines 135..140
                                    wp-includes/js/dist/core-commands.js on lines 149..154
                                    wp-includes/js/dist/core-commands.js on lines 163..168
                                    wp-includes/js/dist/core-commands.js on lines 177..182
                                    wp-includes/js/dist/core-commands.js on lines 191..196
                                    wp-includes/js/dist/customize-widgets.js on lines 301..306
                                    wp-includes/js/dist/customize-widgets.js on lines 315..320
                                    wp-includes/js/dist/customize-widgets.js on lines 329..334
                                    wp-includes/js/dist/customize-widgets.js on lines 343..348
                                    wp-includes/js/dist/customize-widgets.js on lines 562..567
                                    wp-includes/js/dist/customize-widgets.js on lines 576..581
                                    wp-includes/js/dist/edit-post.js on lines 1980..1985
                                    wp-includes/js/dist/edit-post.js on lines 2840..2845
                                    wp-includes/js/dist/edit-post.js on lines 2854..2859
                                    wp-includes/js/dist/edit-post.js on lines 2868..2873
                                    wp-includes/js/dist/edit-widgets.js on lines 298..303
                                    wp-includes/js/dist/edit-widgets.js on lines 312..317
                                    wp-includes/js/dist/edit-widgets.js on lines 346..351
                                    wp-includes/js/dist/edit-widgets.js on lines 3350..3355
                                    wp-includes/js/dist/edit-widgets.js on lines 3364..3369
                                    wp-includes/js/dist/edit-widgets.js on lines 3378..3383
                                    wp-includes/js/dist/edit-widgets.js on lines 3392..3397
                                    wp-includes/js/dist/edit-widgets.js on lines 3600..3605
                                    wp-includes/js/dist/edit-widgets.js on lines 3614..3619
                                    wp-includes/js/dist/edit-widgets.js on lines 4152..4157
                                    wp-includes/js/dist/format-library.js on lines 39..44
                                    wp-includes/js/dist/format-library.js on lines 106..111
                                    wp-includes/js/dist/format-library.js on lines 352..357
                                    wp-includes/js/dist/format-library.js on lines 423..428
                                    wp-includes/js/dist/format-library.js on lines 1107..1112
                                    wp-includes/js/dist/format-library.js on lines 1238..1243
                                    wp-includes/js/dist/format-library.js on lines 1252..1257
                                    wp-includes/js/dist/format-library.js on lines 1532..1537
                                    wp-includes/js/dist/format-library.js on lines 1588..1593
                                    wp-includes/js/dist/format-library.js on lines 1644..1649
                                    wp-includes/js/dist/format-library.js on lines 1700..1705
                                    wp-includes/js/dist/format-library.js on lines 1762..1767
                                    wp-includes/js/dist/nux.js on lines 336..341
                                    wp-includes/js/dist/patterns.js on lines 826..831
                                    wp-includes/js/dist/plugins.js on lines 329..334
                                    wp-includes/js/dist/preferences.js on lines 92..97
                                    wp-includes/js/dist/preferences.js on lines 556..561
                                    wp-includes/js/dist/preferences.js on lines 570..575
                                    wp-includes/js/dist/reusable-blocks.js on lines 238..243
                                    wp-includes/js/dist/widgets.js on lines 92..97
                                    wp-includes/js/dist/widgets.js on lines 112..117
                                    wp-includes/js/dist/widgets.js on lines 1287..1292
                                    wp-includes/js/dist/widgets.js on lines 1489..1494

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    /******/     (() => {
                                    /******/         __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
                                    /******/     })();
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.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/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/list-reusable-blocks.js on lines 32..34
                                    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 2 locations. Consider refactoring.
                                    Open

                                    function blockInserterPanel(state = false, action) {
                                      switch (action.type) {
                                        case 'SET_IS_LIST_VIEW_OPENED':
                                          return action.isOpen ? false : state;
                                        case 'SET_IS_INSERTER_OPENED':
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/edit-widgets.js on lines 239..247

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 57.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    function listViewPanel(state = false, action) {
                                      switch (action.type) {
                                        case 'SET_IS_INSERTER_OPENED':
                                          return action.value ? false : state;
                                        case 'SET_IS_LIST_VIEW_OPENED':
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/edit-widgets.js on lines 220..228

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 57.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                    __webpack_require__.d(__webpack_exports__, {
                                      initialize: () => (/* binding */ initialize),
                                      initializeEditor: () => (/* binding */ initializeEditor),
                                      reinitializeEditor: () => (/* binding */ reinitializeEditor),
                                      store: () => (/* reexport */ store_store)
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/keyboard-shortcuts.js on lines 41..46

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 57.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.DropdownMenu, {
                                        icon: more_vertical,
                                        label: (0,external_wp_i18n_namespaceObject.__)('Options'),
                                        popoverProps: {
                                          placement: 'bottom-end',
                                    Severity: Major
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 1 hr to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 889..900

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 55.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      if (scope === 'core' && name === 'edit-site/block-inspector') {
                                        external_wp_deprecated_default()(`edit-site/block-inspector sidebar`, {
                                          alternative: 'edit-post/block',
                                          version: '6.6'
                                        });
                                    Severity: Minor
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 40 mins to fix
                                    wp-includes/js/dist/edit-widgets.js on lines 371..377

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 49.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      if (scope === 'core' && name === 'edit-site/template') {
                                        external_wp_deprecated_default()(`edit-site/template sidebar`, {
                                          alternative: 'edit-post/document',
                                          version: '6.6'
                                        });
                                    Severity: Minor
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 40 mins to fix
                                    wp-includes/js/dist/edit-widgets.js on lines 378..384

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 49.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      (0,external_wp_data_namespaceObject.dispatch)(external_wp_preferences_namespaceObject.store).setDefaults('core/edit-widgets', {
                                        fixedToolbar: false,
                                        welcomeGuide: true,
                                        showBlockBreadcrumbs: true,
                                        themeStyles: true
                                    Severity: Minor
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 40 mins to fix
                                    wp-includes/js/dist/edit-post.js on lines 3683..3688

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 48.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      const shortcut = (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('z') : external_wp_keycodes_namespaceObject.displayShortcut.primary('y');
                                    Severity: Minor
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 35 mins to fix
                                    wp-includes/js/dist/customize-widgets.js on lines 974..974

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 47.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'welcomeGuide'), []);
                                    Severity: Minor
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 30 mins to fix
                                    wp-includes/js/dist/edit-widgets.js on lines 4129..4129

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 45.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                      const hasThemeStyles = (0,external_wp_data_namespaceObject.useSelect)(select => !!select(external_wp_preferences_namespaceObject.store).get('core/edit-widgets', 'themeStyles'), []);
                                    Severity: Minor
                                    Found in wp-includes/js/dist/edit-widgets.js and 1 other location - About 30 mins to fix
                                    wp-includes/js/dist/edit-widgets.js on lines 4540..4540

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 45.

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

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

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

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

                                    Refactorings

                                    Further Reading

                                    There are no issues that match your filters.

                                    Category
                                    Status