wikimedia/mediawiki-core

View on GitHub
resources/lib/codex/codex.js

Summary

Maintainability
F
2 mos
Test Coverage

File codex.js has 6590 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
Severity: Major
Found in resources/lib/codex/codex.js - About 2 wks to fix

    Function setup has a Cognitive Complexity of 152 (exceeds 5 allowed). Consider refactoring.
    Open

      setup(props, { emit, slots, attrs }) {
        const computedMenuItems = computed(() => {
          const menuItemsWithFooter = props.footer && props.menuItems ? [...props.menuItems, props.footer] : props.menuItems;
          return menuItemsWithFooter.map((menuItem) => __spreadProps(__spreadValues({}, menuItem), {
            id: useGeneratedId("menu-item")
    Severity: Minor
    Found in resources/lib/codex/codex.js - About 3 days to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function setup has 356 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      setup(props, { emit, slots, attrs }) {
        const computedMenuItems = computed(() => {
          const menuItemsWithFooter = props.footer && props.menuItems ? [...props.menuItems, props.footer] : props.menuItems;
          return menuItemsWithFooter.map((menuItem) => __spreadProps(__spreadValues({}, menuItem), {
            id: useGeneratedId("menu-item")
    Severity: Major
    Found in resources/lib/codex/codex.js - About 1 day to fix

      Function setup has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
      Open

        setup(props, { attrs, emit, slots }) {
          const form = ref();
          const menu = ref();
          const menuId = useGeneratedId("typeahead-search-menu");
          const expanded = ref(false);
      Severity: Minor
      Found in resources/lib/codex/codex.js - About 1 day to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function setup has 230 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        setup(props, { attrs, emit, slots }) {
          const form = ref();
          const menu = ref();
          const menuId = useGeneratedId("typeahead-search-menu");
          const expanded = ref(false);
      Severity: Major
      Found in resources/lib/codex/codex.js - About 1 day to fix

        Function setup has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
        Open

          setup(props, { slots, emit }) {
            const rootElement = ref();
            const tabListElement = ref();
            const prevScroller = ref();
            const nextScroller = ref();
        Severity: Minor
        Found in resources/lib/codex/codex.js - About 1 day to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function setup has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
        Open

          setup(props, { emit, attrs }) {
            const rootElement = ref();
            const computedDirection = useComputedDirection(rootElement);
            const input = ref();
            const inputValue = ref("");
        Severity: Minor
        Found in resources/lib/codex/codex.js - About 7 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function setup has 157 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          setup(props, { emit, attrs }) {
            const rootElement = ref();
            const computedDirection = useComputedDirection(rootElement);
            const input = ref();
            const inputValue = ref("");
        Severity: Major
        Found in resources/lib/codex/codex.js - About 6 hrs to fix

          Function setup has 142 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            setup(props, { slots, emit }) {
              const rootElement = ref();
              const tabListElement = ref();
              const prevScroller = ref();
              const nextScroller = ref();
          Severity: Major
          Found in resources/lib/codex/codex.js - About 5 hrs to fix

            Function setup has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
            Open

              setup(props, { emit }) {
                const labelId = useGeneratedId("dialog-label");
                const backdrop = ref();
                const dialogElement = ref();
                const dialogBody = ref();
            Severity: Minor
            Found in resources/lib/codex/codex.js - About 5 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function setup has 138 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              setup(props, { emit }) {
                const labelId = useGeneratedId("dialog-label");
                const backdrop = ref();
                const dialogElement = ref();
                const dialogBody = ref();
            Severity: Major
            Found in resources/lib/codex/codex.js - About 5 hrs to fix

              Function computePosition$1 has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
              Open

              const computePosition$1 = (reference, floating, config) => __async(void 0, null, function* () {
                const {
                  placement = "bottom",
                  strategy = "absolute",
                  middleware = [],
              Severity: Minor
              Found in resources/lib/codex/codex.js - About 4 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function _sfc_render$e has 121 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
                const _component_cdx_icon = resolveComponent("cdx-icon");
                const _component_cdx_button = resolveComponent("cdx-button");
                return openBlock(), createBlock(Teleport, {
                  to: _ctx.computedTarget,
              Severity: Major
              Found in resources/lib/codex/codex.js - About 4 hrs to fix

                Function useFloating has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function useFloating(reference, floating, options) {
                  if (options === void 0) {
                    options = {};
                  }
                  const whileElementsMountedOption = options.whileElementsMounted;
                Severity: Major
                Found in resources/lib/codex/codex.js - About 4 hrs to fix

                  Function flip$1 has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  const flip$1 = function(options) {
                    if (options === void 0) {
                      options = {};
                    }
                    return {
                  Severity: Major
                  Found in resources/lib/codex/codex.js - About 4 hrs to fix

                    Function _sfc_render has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
                      const _component_cdx_icon = resolveComponent("cdx-icon");
                      const _component_cdx_menu = resolveComponent("cdx-menu");
                      const _component_cdx_search_input = resolveComponent("cdx-search-input");
                      return openBlock(), createElementBlock("div", {
                    Severity: Major
                    Found in resources/lib/codex/codex.js - About 3 hrs to fix

                      Function useFloating has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function useFloating(reference, floating, options) {
                        if (options === void 0) {
                          options = {};
                        }
                        const whileElementsMountedOption = options.whileElementsMounted;
                      Severity: Minor
                      Found in resources/lib/codex/codex.js - About 3 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function setup has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        setup(props, { emit, attrs }) {
                          const handle = ref();
                          const menu = ref();
                          const descriptionId = inject(FieldDescriptionIdKey, void 0);
                          const menuId = useGeneratedId("select-menu");
                      Severity: Major
                      Found in resources/lib/codex/codex.js - About 3 hrs to fix

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

                            fn(state) {
                              return __async(this, null, function* () {
                                var _middlewareData$arrow, _middlewareData$flip;
                                const {
                                  placement,
                        Severity: Major
                        Found in resources/lib/codex/codex.js - About 3 hrs to fix

                          Function setup has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                          Open

                            setup(props, { emit, attrs }) {
                              const handle = ref();
                              const menu = ref();
                              const descriptionId = inject(FieldDescriptionIdKey, void 0);
                              const menuId = useGeneratedId("select-menu");
                          Severity: Minor
                          Found in resources/lib/codex/codex.js - About 3 hrs to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

                          Function _sfc_render$j has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
                            const _component_cdx_thumbnail = resolveComponent("cdx-thumbnail");
                            const _component_cdx_icon = resolveComponent("cdx-icon");
                            const _component_cdx_search_result_title = resolveComponent("cdx-search-result-title");
                            return openBlock(), createElementBlock("li", {
                          Severity: Major
                          Found in resources/lib/codex/codex.js - About 3 hrs to fix

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

                              setup(props, { emit, attrs, slots }) {
                                const input = ref();
                                const inputWrapper = ref();
                                const menu = ref();
                                const menuId = useGeneratedId("combobox");
                            Severity: Major
                            Found in resources/lib/codex/codex.js - About 3 hrs to fix

                              Function observeMove has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function observeMove(element, onMove) {
                                let io = null;
                                let timeoutId;
                                const root = getDocumentElement(element);
                                function cleanup() {
                              Severity: Minor
                              Found in resources/lib/codex/codex.js - About 3 hrs to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function setup has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                setup(props, { emit, attrs }) {
                                  const idAttribute = attrs.id;
                                  const {
                                    computedDisabled,
                                    computedStatus,
                              Severity: Major
                              Found in resources/lib/codex/codex.js - About 3 hrs to fix

                                Function computePosition$1 has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                const computePosition$1 = (reference, floating, config) => __async(void 0, null, function* () {
                                  const {
                                    placement = "bottom",
                                    strategy = "absolute",
                                    middleware = [],
                                Severity: Major
                                Found in resources/lib/codex/codex.js - About 3 hrs to fix

                                  Function size$1 has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  const size$1 = function(options) {
                                    if (options === void 0) {
                                      options = {};
                                    }
                                    return {
                                  Severity: Major
                                  Found in resources/lib/codex/codex.js - About 3 hrs to fix

                                    Function _sfc_render$5 has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
                                      const _component_cdx_icon = resolveComponent("cdx-icon");
                                      const _component_cdx_button = resolveComponent("cdx-button");
                                      return openBlock(), createElementBlock("div", {
                                        ref: "rootElement",
                                    Severity: Major
                                    Found in resources/lib/codex/codex.js - About 3 hrs to fix

                                      Function useFloatingMenu has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function useFloatingMenu(referenceElement, menu) {
                                        const menuIsExpanded = () => {
                                          var _a;
                                          return (_a = menu.value) == null ? void 0 : _a.isExpanded();
                                        };
                                      Severity: Major
                                      Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                        Function fn has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            fn(state) {
                                              return __async(this, null, function* () {
                                                const {
                                                  placement,
                                                  rects,
                                        Severity: Major
                                        Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                          Function _sfc_render$f has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                          function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
                                            const _component_cdx_text_input = resolveComponent("cdx-text-input");
                                            const _component_cdx_icon = resolveComponent("cdx-icon");
                                            const _component_cdx_button = resolveComponent("cdx-button");
                                            const _component_cdx_menu = resolveComponent("cdx-menu");
                                          Severity: Major
                                          Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                            Function autoUpdate has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                            function autoUpdate(reference, floating, update, options) {
                                              if (options === void 0) {
                                                options = {};
                                              }
                                              const {
                                            Severity: Major
                                            Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                              Function observeMove has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                              function observeMove(element, onMove) {
                                                let io = null;
                                                let timeoutId;
                                                const root = getDocumentElement(element);
                                                function cleanup() {
                                              Severity: Major
                                              Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                Function setup has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                                                Open

                                                  setup: (props, { emit, attrs, slots }) => {
                                                    const rootElement = ref();
                                                    const textInput = ref();
                                                    const menu = ref();
                                                    const menuId = useGeneratedId("lookup-menu");
                                                Severity: Minor
                                                Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                Cognitive Complexity

                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                A method's cognitive complexity is based on a few simple rules:

                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                • Code is considered more complex when "flow breaking structures are nested"

                                                Further reading

                                                Function setup has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                                                Open

                                                  setup(props, { emit, attrs, slots }) {
                                                    const input = ref();
                                                    const inputWrapper = ref();
                                                    const menu = ref();
                                                    const menuId = useGeneratedId("combobox");
                                                Severity: Minor
                                                Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                Cognitive Complexity

                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                A method's cognitive complexity is based on a few simple rules:

                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                • Code is considered more complex when "flow breaking structures are nested"

                                                Further reading

                                                Function _sfc_render$l has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
                                                  const _component_cdx_input_chip = resolveComponent("cdx-input-chip");
                                                  return openBlock(), createElementBlock("div", {
                                                    ref: "rootElement",
                                                    class: normalizeClass(["cdx-chip-input", _ctx.rootClasses]),
                                                Severity: Major
                                                Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                  Function _sfc_render$h has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                  function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
                                                    const _component_cdx_menu_item = resolveComponent("cdx-menu-item");
                                                    const _component_cdx_progress_bar = resolveComponent("cdx-progress-bar");
                                                    return withDirectives((openBlock(), createElementBlock("div", {
                                                      class: normalizeClass(["cdx-menu", _ctx.rootClasses]),
                                                  Severity: Major
                                                  Found in resources/lib/codex/codex.js - About 2 hrs to fix

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

                                                            default: withCtx(() => {
                                                              var _a, _b, _c, _d, _e, _f;
                                                              return [
                                                                _ctx.showThumbnail ? (openBlock(), createBlock(_component_cdx_thumbnail, {
                                                                  key: 0,
                                                    Severity: Major
                                                    Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                      Function _sfc_render$o has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                                                      Open

                                                      function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
                                                        const _component_cdx_icon = resolveComponent("cdx-icon");
                                                        return !_ctx.isLegend ? (openBlock(), createElementBlock("div", {
                                                          key: 0,
                                                          class: normalizeClass(["cdx-label", _ctx.rootClasses]),
                                                      Severity: Minor
                                                      Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                      Cognitive Complexity

                                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                      A method's cognitive complexity is based on a few simple rules:

                                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                      • Code is considered more complex for each "break in the linear flow of the code"
                                                      • Code is considered more complex when "flow breaking structures are nested"

                                                      Further reading

                                                      Function _sfc_render$7 has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                      function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
                                                        const _component_cdx_icon = resolveComponent("cdx-icon");
                                                        const _component_cdx_menu = resolveComponent("cdx-menu");
                                                        return openBlock(), createElementBlock("div", {
                                                          class: normalizeClass(["cdx-select-vue", _ctx.rootClasses]),
                                                      Severity: Major
                                                      Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                        Function detectOverflow has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                        function detectOverflow(state, options) {
                                                          return __async(this, null, function* () {
                                                            var _await$platform$isEle;
                                                            if (options === void 0) {
                                                              options = {};
                                                        Severity: Major
                                                        Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                          Function setup has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                            setup(props, { attrs, emit }) {
                                                              const wrappedModel = useModelWrapper(toRef(props, "modelValue"), emit);
                                                              const idAttribute = attrs.id;
                                                              const {
                                                                computedDisabled,
                                                          Severity: Major
                                                          Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                            Function refresh has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                              function refresh(skip, threshold) {
                                                                if (skip === void 0) {
                                                                  skip = false;
                                                                }
                                                                if (threshold === void 0) {
                                                            Severity: Major
                                                            Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                              Function computeCoordsFromPlacement has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                              function computeCoordsFromPlacement(_ref, placement, rtl) {
                                                                let {
                                                                  reference,
                                                                  floating
                                                                } = _ref;
                                                              Severity: Major
                                                              Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                                Function _sfc_render$e has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                                                                Open

                                                                function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
                                                                  const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                  const _component_cdx_button = resolveComponent("cdx-button");
                                                                  return openBlock(), createBlock(Teleport, {
                                                                    to: _ctx.computedTarget,
                                                                Severity: Minor
                                                                Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                                Cognitive Complexity

                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                A method's cognitive complexity is based on a few simple rules:

                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                Further reading

                                                                Function _sfc_render$c has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
                                                                  const _component_cdx_label = resolveComponent("cdx-label");
                                                                  const _component_cdx_message = resolveComponent("cdx-message");
                                                                  return openBlock(), createBlock(resolveDynamicComponent(_ctx.isFieldset ? "fieldset" : "div"), {
                                                                    class: normalizeClass(["cdx-field", _ctx.rootClasses]),
                                                                Severity: Major
                                                                Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                                  Function getBoundingClientRect has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                  function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
                                                                    if (includeScale === void 0) {
                                                                      includeScale = false;
                                                                    }
                                                                    if (isFixedStrategy === void 0) {
                                                                  Severity: Minor
                                                                  Found in resources/lib/codex/codex.js - About 2 hrs to fix

                                                                    Function setup has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                      setup(props, { emit }) {
                                                                        const dismissed = ref(false);
                                                                        const userDismissable = computed(
                                                                          () => props.inline === false && props.dismissButtonLabel.length > 0
                                                                        );
                                                                    Severity: Minor
                                                                    Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                      Function hide$1 has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                      const hide$1 = function(options) {
                                                                        if (options === void 0) {
                                                                          options = {};
                                                                        }
                                                                        return {
                                                                      Severity: Minor
                                                                      Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                        Function getBoundingClientRect has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                                                                        Open

                                                                        function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
                                                                          if (includeScale === void 0) {
                                                                            includeScale = false;
                                                                          }
                                                                          if (isFixedStrategy === void 0) {
                                                                        Severity: Minor
                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                        Cognitive Complexity

                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                        Further reading

                                                                        Function _sfc_render$o has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                        function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
                                                                          const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                          return !_ctx.isLegend ? (openBlock(), createElementBlock("div", {
                                                                            key: 0,
                                                                            class: normalizeClass(["cdx-label", _ctx.rootClasses]),
                                                                        Severity: Minor
                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                          Function _sfc_render$a has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                          function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
                                                                            const _component_cdx_text_input = resolveComponent("cdx-text-input");
                                                                            const _component_cdx_menu = resolveComponent("cdx-menu");
                                                                            return openBlock(), createElementBlock("div", {
                                                                              ref: "rootElement",
                                                                          Severity: Minor
                                                                          Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                            Function _sfc_render$s has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                            function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
                                                                              const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                              const _component_cdx_button = resolveComponent("cdx-button");
                                                                              return openBlock(), createElementBlock("details", {
                                                                                class: normalizeClass(["cdx-accordion", _ctx.rootClasses]),
                                                                            Severity: Minor
                                                                            Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                              Function autoUpdate has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                              function autoUpdate(reference, floating, update, options) {
                                                                                if (options === void 0) {
                                                                                  options = {};
                                                                                }
                                                                                const {
                                                                              Severity: Minor
                                                                              Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Function _sfc_render$1 has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                              function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                const _component_cdx_label = resolveComponent("cdx-label");
                                                                                return openBlock(), createElementBlock("span", {
                                                                                  class: normalizeClass(["cdx-toggle-switch", _ctx.rootClasses]),
                                                                                  style: normalizeStyle(_ctx.rootStyle)
                                                                              Severity: Minor
                                                                              Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                  setup(props, { emit }) {
                                                                                    const rootElement = ref();
                                                                                    const rootClasses = computed(() => {
                                                                                      return {
                                                                                        "cdx-input-chip--disabled": props.disabled
                                                                                Severity: Minor
                                                                                Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                  Function _sfc_render$g has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                    const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                    return openBlock(), createElementBlock("div", {
                                                                                      class: normalizeClass(["cdx-text-input", _ctx.rootClasses]),
                                                                                      style: normalizeStyle(_ctx.rootStyle)
                                                                                  Severity: Minor
                                                                                  Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                    Function useResizeObserver has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                    function useResizeObserver(templateRef) {
                                                                                      const currentDimensions = ref(
                                                                                        { width: void 0, height: void 0 }
                                                                                      );
                                                                                      if (typeof window !== "object" || !("ResizeObserver" in window) || !("ResizeObserverEntry" in window)) {
                                                                                    Severity: Minor
                                                                                    Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                      Function _sfc_render$d has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                      function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                        const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                        const _component_cdx_button = resolveComponent("cdx-button");
                                                                                        return openBlock(), createBlock(Transition, {
                                                                                          name: "cdx-message",
                                                                                      Severity: Minor
                                                                                      Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                        Function _sfc_render$9 has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                        function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                          const _component_cdx_label = resolveComponent("cdx-label");
                                                                                          return openBlock(), createElementBlock("span", {
                                                                                            class: normalizeClass(["cdx-radio", _ctx.rootClasses])
                                                                                          }, [
                                                                                        Severity: Minor
                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                          Function setup has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                                                          Open

                                                                                            setup(props, { emit }) {
                                                                                              function isSelected(button) {
                                                                                                if (Array.isArray(props.modelValue)) {
                                                                                                  return props.modelValue.indexOf(button.value) !== -1;
                                                                                                } else if (props.modelValue !== null) {
                                                                                          Severity: Minor
                                                                                          Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                          Cognitive Complexity

                                                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                          A method's cognitive complexity is based on a few simple rules:

                                                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                                                          Further reading

                                                                                          Function setup has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                                                          Open

                                                                                            setup(props) {
                                                                                              const rootElement = ref();
                                                                                              const computedDir = useComputedDirection(rootElement);
                                                                                              const computedLang = useComputedLanguage(rootElement);
                                                                                              const overriddenDir = computed(() => {
                                                                                          Severity: Minor
                                                                                          Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                          Cognitive Complexity

                                                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                          A method's cognitive complexity is based on a few simple rules:

                                                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                                                          Further reading

                                                                                          Function getClippingElementAncestors has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                                                                          Open

                                                                                          function getClippingElementAncestors(element, cache) {
                                                                                            const cachedResult = cache.get(element);
                                                                                            if (cachedResult) {
                                                                                              return cachedResult;
                                                                                            }
                                                                                          Severity: Minor
                                                                                          Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                          Cognitive Complexity

                                                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                          A method's cognitive complexity is based on a few simple rules:

                                                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                                                          Further reading

                                                                                          Function _sfc_render$n has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                          function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                            const _component_cdx_label = resolveComponent("cdx-label");
                                                                                            return openBlock(), createElementBlock("span", {
                                                                                              class: normalizeClass(["cdx-checkbox", _ctx.rootClasses])
                                                                                            }, [
                                                                                          Severity: Minor
                                                                                          Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                fn(state) {
                                                                                                  return __async(this, null, function* () {
                                                                                                    const {
                                                                                                      rects
                                                                                                    } = state;
                                                                                            Severity: Minor
                                                                                            Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                              function useIntersectionObserver(templateRef, observerOptions) {
                                                                                                const intersectionRef = ref(false);
                                                                                                let mounted = false;
                                                                                                if (typeof window !== "object") {
                                                                                                  return intersectionRef;
                                                                                              Severity: Minor
                                                                                              Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                    function handleCharacterNavigation(e) {
                                                                                                      if (e.key === "Clear") {
                                                                                                        clearKeyBuffer();
                                                                                                        return true;
                                                                                                      }
                                                                                                Severity: Minor
                                                                                                Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                  Function _sfc_render$8 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                    const _component_cdx_text_input = resolveComponent("cdx-text-input");
                                                                                                    const _component_cdx_button = resolveComponent("cdx-button");
                                                                                                    return openBlock(), createElementBlock("div", {
                                                                                                      class: normalizeClass(["cdx-search-input", _ctx.rootClasses]),
                                                                                                  Severity: Minor
                                                                                                  Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                    Function _sfc_render$m has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                    function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                      const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                                      const _component_cdx_button = resolveComponent("cdx-button");
                                                                                                      return openBlock(), createElementBlock("div", {
                                                                                                        ref: "rootElement",
                                                                                                    Severity: Minor
                                                                                                    Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                      function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
                                                                                                        let {
                                                                                                          elements,
                                                                                                          rect,
                                                                                                          offsetParent,
                                                                                                      Severity: Minor
                                                                                                      Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                        Function _sfc_render$d has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                        function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                          const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                                          const _component_cdx_button = resolveComponent("cdx-button");
                                                                                                          return openBlock(), createBlock(Transition, {
                                                                                                            name: "cdx-message",
                                                                                                        Severity: Minor
                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                        Cognitive Complexity

                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                        Further reading

                                                                                                        Function getOverflowAncestors has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                        function getOverflowAncestors(node, list, traverseIframes) {
                                                                                                          var _node$ownerDocument2;
                                                                                                          if (list === void 0) {
                                                                                                            list = [];
                                                                                                          }
                                                                                                        Severity: Minor
                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                        Cognitive Complexity

                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                        Further reading

                                                                                                        Function convertOffsetParentRelativeRectToViewportRelativeRect has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                        function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
                                                                                                          let {
                                                                                                            elements,
                                                                                                            rect,
                                                                                                            offsetParent,
                                                                                                        Severity: Minor
                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                        Cognitive Complexity

                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                        Further reading

                                                                                                        Function _sfc_render$p has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                        function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                          const _component_cdx_thumbnail = resolveComponent("cdx-thumbnail");
                                                                                                          const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                                          return openBlock(), createBlock(resolveDynamicComponent(_ctx.contentTag), {
                                                                                                            href: _ctx.cardLink,
                                                                                                        Severity: Minor
                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                              function onUpdateInputValue(newVal, immediate = false) {
                                                                                                                if (selectedResult.value && selectedResult.value.label !== newVal && selectedResult.value.value !== newVal) {
                                                                                                                  selection.value = null;
                                                                                                                }
                                                                                                                if (pendingDelayId !== void 0) {
                                                                                                          Severity: Minor
                                                                                                          Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                            Function setup has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                              setup(props, { emit }) {
                                                                                                                const dismissed = ref(false);
                                                                                                                const userDismissable = computed(
                                                                                                                  () => props.inline === false && props.dismissButtonLabel.length > 0
                                                                                                                );
                                                                                                            Severity: Minor
                                                                                                            Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                            Cognitive Complexity

                                                                                                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                            A method's cognitive complexity is based on a few simple rules:

                                                                                                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                            • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                            • Code is considered more complex when "flow breaking structures are nested"

                                                                                                            Further reading

                                                                                                            Function useFieldData has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                            function useFieldData(disabledProp, statusProp, idAttr) {
                                                                                                              const computedDisabled = useComputedDisabled(disabledProp);
                                                                                                              const providedStatus = inject(FieldStatusKey, ref("default"));
                                                                                                              const computedStatus = computed(() => {
                                                                                                                if ((statusProp == null ? void 0 : statusProp.value) && statusProp.value !== "default") {
                                                                                                            Severity: Minor
                                                                                                            Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                            Cognitive Complexity

                                                                                                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                            A method's cognitive complexity is based on a few simple rules:

                                                                                                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                            • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                            • Code is considered more complex when "flow breaking structures are nested"

                                                                                                            Further reading

                                                                                                            Function flattenSlotContents has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                            function flattenSlotContents(slotContents) {
                                                                                                              const flattened = [];
                                                                                                              for (const node of slotContents) {
                                                                                                                if (
                                                                                                                  // HTML tag
                                                                                                            Severity: Minor
                                                                                                            Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                            Cognitive Complexity

                                                                                                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                            A method's cognitive complexity is based on a few simple rules:

                                                                                                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                            • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                            • Code is considered more complex when "flow breaking structures are nested"

                                                                                                            Further reading

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

                                                                                                              setup(props, { slots }) {
                                                                                                                const { disabled, status, isFieldset } = toRefs(props);
                                                                                                                const computedDisabled = useComputedDisabled(disabled);
                                                                                                                const rootClasses = computed(() => {
                                                                                                                  return {
                                                                                                            Severity: Minor
                                                                                                            Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                                setup(props, { emit, slots, attrs }) {
                                                                                                                  var _a;
                                                                                                                  useLabelChecker((_a = slots.default) == null ? void 0 : _a.call(slots), attrs, "CdxToggleSwitch");
                                                                                                                  const input = ref();
                                                                                                                  const inputId = useGeneratedId("toggle-switch");
                                                                                                              Severity: Minor
                                                                                                              Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                                  setup(props) {
                                                                                                                    const rootElement = ref();
                                                                                                                    const computedDir = useComputedDirection(rootElement);
                                                                                                                    const computedLang = useComputedLanguage(rootElement);
                                                                                                                    const overriddenDir = computed(() => {
                                                                                                                Severity: Minor
                                                                                                                Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                                      function onKeydown(e) {
                                                                                                                        var _a;
                                                                                                                        switch (e.key) {
                                                                                                                          case "Enter":
                                                                                                                            emit("click-chip");
                                                                                                                  Severity: Minor
                                                                                                                  Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                                    function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
                                                                                                                      const isOffsetParentAnElement = isHTMLElement(offsetParent);
                                                                                                                      const documentElement = getDocumentElement(offsetParent);
                                                                                                                      const isFixed = strategy === "fixed";
                                                                                                                      const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
                                                                                                                    Severity: Minor
                                                                                                                    Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                      Function _sfc_render$4 has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                      function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                        const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                                                        return openBlock(), createElementBlock("div", {
                                                                                                                          class: normalizeClass(["cdx-text-area", _ctx.rootClasses]),
                                                                                                                          style: normalizeStyle(_ctx.rootStyle)
                                                                                                                      Severity: Minor
                                                                                                                      Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                        Function __objRest has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        var __objRest = (source, exclude) => {
                                                                                                                          var target = {};
                                                                                                                          for (var prop in source)
                                                                                                                            if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
                                                                                                                              target[prop] = source[prop];
                                                                                                                        Severity: Minor
                                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                        Cognitive Complexity

                                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                        Further reading

                                                                                                                        Function _sfc_render$p has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                          const _component_cdx_thumbnail = resolveComponent("cdx-thumbnail");
                                                                                                                          const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                                                          return openBlock(), createBlock(resolveDynamicComponent(_ctx.contentTag), {
                                                                                                                            href: _ctx.cardLink,
                                                                                                                        Severity: Minor
                                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                        Cognitive Complexity

                                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                        Further reading

                                                                                                                        Function _sfc_render$1 has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                          const _component_cdx_label = resolveComponent("cdx-label");
                                                                                                                          return openBlock(), createElementBlock("span", {
                                                                                                                            class: normalizeClass(["cdx-toggle-switch", _ctx.rootClasses]),
                                                                                                                            style: normalizeStyle(_ctx.rootStyle)
                                                                                                                        Severity: Minor
                                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                        Cognitive Complexity

                                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                        Further reading

                                                                                                                        Function getAlignmentSides has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        function getAlignmentSides(placement, rects, rtl) {
                                                                                                                          if (rtl === void 0) {
                                                                                                                            rtl = false;
                                                                                                                          }
                                                                                                                          const alignment = getAlignment(placement);
                                                                                                                        Severity: Minor
                                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                        Cognitive Complexity

                                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                        Further reading

                                                                                                                        Function __spreadValues has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        var __spreadValues = (a, b) => {
                                                                                                                          for (var prop in b || (b = {}))
                                                                                                                            if (__hasOwnProp.call(b, prop))
                                                                                                                              __defNormalProp(a, prop, b[prop]);
                                                                                                                          if (__getOwnPropSymbols)
                                                                                                                        Severity: Minor
                                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                        Cognitive Complexity

                                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                        Further reading

                                                                                                                        Function P8 has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        function P8(c, s) {
                                                                                                                          if (typeof c == "string")
                                                                                                                            return false;
                                                                                                                          if ("langCodeMap" in c) {
                                                                                                                            const h = s in c.langCodeMap ? c.langCodeMap[s] : c.default;
                                                                                                                        Severity: Minor
                                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                        Cognitive Complexity

                                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                        Further reading

                                                                                                                        Function getSideList has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        function getSideList(side, isStart, rtl) {
                                                                                                                          const lr = ["left", "right"];
                                                                                                                          const rl = ["right", "left"];
                                                                                                                          const tb = ["top", "bottom"];
                                                                                                                          const bt = ["bottom", "top"];
                                                                                                                        Severity: Minor
                                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                        Cognitive Complexity

                                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                        Further reading

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

                                                                                                                          setup(props, { emit, slots, attrs }) {
                                                                                                                            var _a;
                                                                                                                            useLabelChecker((_a = slots.default) == null ? void 0 : _a.call(slots), attrs, "CdxCheckbox");
                                                                                                                            const {
                                                                                                                              computedDisabled,
                                                                                                                        Severity: Minor
                                                                                                                        Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                          Function _sfc_render$2 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                          function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                            const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                                                            const _component_cdx_toggle_button = resolveComponent("cdx-toggle-button");
                                                                                                                            return openBlock(), createElementBlock("div", _hoisted_1$2, [
                                                                                                                              (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttons, (button) => {
                                                                                                                          Severity: Minor
                                                                                                                          Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                                              setup(props, { emit }) {
                                                                                                                                function isSelected(button) {
                                                                                                                                  if (Array.isArray(props.modelValue)) {
                                                                                                                                    return props.modelValue.indexOf(button.value) !== -1;
                                                                                                                                  } else if (props.modelValue !== null) {
                                                                                                                            Severity: Minor
                                                                                                                            Found in resources/lib/codex/codex.js - About 1 hr to fix

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

                                                                                                                                  function onInputKeydown(e) {
                                                                                                                                    var _a, _b;
                                                                                                                                    const prevArrow = computedDirection.value === "rtl" ? "ArrowRight" : "ArrowLeft";
                                                                                                                                    switch (e.key) {
                                                                                                                                      case "Enter":
                                                                                                                              Severity: Minor
                                                                                                                              Found in resources/lib/codex/codex.js - About 1 hr to fix

                                                                                                                                Function __async has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                var __async = (__this, __arguments, generator) => {
                                                                                                                                  return new Promise((resolve, reject) => {
                                                                                                                                    var fulfilled = (value) => {
                                                                                                                                      try {
                                                                                                                                        step(generator.next(value));
                                                                                                                                Severity: Minor
                                                                                                                                Found in resources/lib/codex/codex.js - About 55 mins to fix

                                                                                                                                Cognitive Complexity

                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                Further reading

                                                                                                                                Function getRectRelativeToOffsetParent has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
                                                                                                                                  const isOffsetParentAnElement = isHTMLElement(offsetParent);
                                                                                                                                  const documentElement = getDocumentElement(offsetParent);
                                                                                                                                  const isFixed = strategy === "fixed";
                                                                                                                                  const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
                                                                                                                                Severity: Minor
                                                                                                                                Found in resources/lib/codex/codex.js - About 55 mins to fix

                                                                                                                                Cognitive Complexity

                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                Further reading

                                                                                                                                Function setup has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                  setup(props, { slots }) {
                                                                                                                                    const { disabled, status, isFieldset } = toRefs(props);
                                                                                                                                    const computedDisabled = useComputedDisabled(disabled);
                                                                                                                                    const rootClasses = computed(() => {
                                                                                                                                      return {
                                                                                                                                Severity: Minor
                                                                                                                                Found in resources/lib/codex/codex.js - About 55 mins to fix

                                                                                                                                Cognitive Complexity

                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                Further reading

                                                                                                                                Function useFloatingMenu has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                function useFloatingMenu(referenceElement, menu) {
                                                                                                                                  const menuIsExpanded = () => {
                                                                                                                                    var _a;
                                                                                                                                    return (_a = menu.value) == null ? void 0 : _a.isExpanded();
                                                                                                                                  };
                                                                                                                                Severity: Minor
                                                                                                                                Found in resources/lib/codex/codex.js - About 55 mins to fix

                                                                                                                                Cognitive Complexity

                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                Further reading

                                                                                                                                Function _sfc_render$e has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                Severity: Minor
                                                                                                                                Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                  Function _sfc_render$2 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                    Function _sfc_render$s has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                    function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                      Function _sfc_render$m has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                      function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                        Function _sfc_render$f has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                        function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                          Function _sfc_render$a has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                            Function _sfc_render$t has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                            Open

                                                                                                                                            function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                              Function _sfc_render$d has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                              Open

                                                                                                                                              function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                Function _sfc_render$b has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                Open

                                                                                                                                                function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                  Function isContainingBlock has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                  function isContainingBlock(element) {
                                                                                                                                                    const webkit = isWebKit();
                                                                                                                                                    const css = getComputedStyle(element);
                                                                                                                                                    return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
                                                                                                                                                  }
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                  Cognitive Complexity

                                                                                                                                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                  A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                  • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                  • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                  Further reading

                                                                                                                                                  Function _sfc_render$q has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                  function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                    Function _sfc_render$n has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                    Open

                                                                                                                                                    function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                      Function _sfc_render$9 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                      function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                        Function _sfc_render$5 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                        function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in resources/lib/codex/codex.js - About 45 mins to fix

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

                                                                                                                                                          function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                            Function _sfc_render$1 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                            function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                              Function _sfc_render$3 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                              Open

                                                                                                                                                              function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                Function _sfc_render$o has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                Open

                                                                                                                                                                function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                  Function _sfc_render$k has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                  Open

                                                                                                                                                                  function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                  Severity: Minor
                                                                                                                                                                  Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                    Function _sfc_render$r has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                    Open

                                                                                                                                                                    function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                    Severity: Minor
                                                                                                                                                                    Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                      Function _sfc_render$c has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                      Open

                                                                                                                                                                      function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                      Severity: Minor
                                                                                                                                                                      Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                        Function _sfc_render has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                        Open

                                                                                                                                                                        function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                          const _component_cdx_icon = resolveComponent("cdx-icon");
                                                                                                                                                                          const _component_cdx_menu = resolveComponent("cdx-menu");
                                                                                                                                                                          const _component_cdx_search_input = resolveComponent("cdx-search-input");
                                                                                                                                                                          return openBlock(), createElementBlock("div", {
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                        Cognitive Complexity

                                                                                                                                                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                        A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                        • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                        • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                        Further reading

                                                                                                                                                                        Function _sfc_render$l has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                        Open

                                                                                                                                                                        function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                          Function _sfc_render$j has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                          Open

                                                                                                                                                                          function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                          Severity: Minor
                                                                                                                                                                          Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                            Function _sfc_render$7 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                            Open

                                                                                                                                                                            function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in resources/lib/codex/codex.js - About 45 mins to fix

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

                                                                                                                                                                              function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                              Severity: Minor
                                                                                                                                                                              Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                Function E8 has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                Open

                                                                                                                                                                                function E8(c, s, h) {
                                                                                                                                                                                  if (typeof c == "string" || "path" in c)
                                                                                                                                                                                    return c;
                                                                                                                                                                                  if ("shouldFlip" in c)
                                                                                                                                                                                    return c.ltr;
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                Cognitive Complexity

                                                                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                Further reading

                                                                                                                                                                                Function _sfc_render$p has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                Open

                                                                                                                                                                                function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in resources/lib/codex/codex.js - About 45 mins to fix

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

                                                                                                                                                                                  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                  Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                    Function setup has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                    Open

                                                                                                                                                                                      setup: (props, { emit }) => {
                                                                                                                                                                                        const onMouseMove = () => {
                                                                                                                                                                                          if (!props.highlighted) {
                                                                                                                                                                                            emit("change", "highlighted", true);
                                                                                                                                                                                          }
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                    Cognitive Complexity

                                                                                                                                                                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                    A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                    • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                    • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                    Further reading

                                                                                                                                                                                    Function _sfc_render$u has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                    Open

                                                                                                                                                                                    function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                      Function _sfc_render$i has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                      Open

                                                                                                                                                                                      function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                      Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                        Function _sfc_render$8 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                        Open

                                                                                                                                                                                        function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                        Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                          Function _sfc_render$h has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                          Open

                                                                                                                                                                                          function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                            Function _sfc_render$g has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                            Open

                                                                                                                                                                                            function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                            Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                              Function useGeneratedId has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                              Open

                                                                                                                                                                                              function useGeneratedId(identifier) {
                                                                                                                                                                                                var _a;
                                                                                                                                                                                                const vm = getCurrentInstance();
                                                                                                                                                                                                const externalId = (_a = vm == null ? void 0 : vm.props.id) != null ? _a : vm == null ? void 0 : vm.attrs.id;
                                                                                                                                                                                                if (identifier) {
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in resources/lib/codex/codex.js - About 45 mins to fix

                                                                                                                                                                                              Cognitive Complexity

                                                                                                                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                              Further reading

                                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                                              Open

                                                                                                                                                                                                    if (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {
                                                                                                                                                                                                      if (!props.expanded) {
                                                                                                                                                                                                        emit("update:expanded", true);
                                                                                                                                                                                                      }
                                                                                                                                                                                                      if (e.key === " " && keyBuffer.length < 1) {
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in resources/lib/codex/codex.js - About 40 mins to fix

                                                                                                                                                                                                Function _sfc_render$9 has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                Open

                                                                                                                                                                                                function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                                  const _component_cdx_label = resolveComponent("cdx-label");
                                                                                                                                                                                                  return openBlock(), createElementBlock("span", {
                                                                                                                                                                                                    class: normalizeClass(["cdx-radio", _ctx.rootClasses])
                                                                                                                                                                                                  }, [
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in resources/lib/codex/codex.js - About 35 mins to fix

                                                                                                                                                                                                Cognitive Complexity

                                                                                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                                Further reading

                                                                                                                                                                                                Function _sfc_render$n has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                Open

                                                                                                                                                                                                function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                                  const _component_cdx_label = resolveComponent("cdx-label");
                                                                                                                                                                                                  return openBlock(), createElementBlock("span", {
                                                                                                                                                                                                    class: normalizeClass(["cdx-checkbox", _ctx.rootClasses])
                                                                                                                                                                                                  }, [
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in resources/lib/codex/codex.js - About 35 mins to fix

                                                                                                                                                                                                Cognitive Complexity

                                                                                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                                Further reading

                                                                                                                                                                                                Function _sfc_render$c has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                Open

                                                                                                                                                                                                function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                                  const _component_cdx_label = resolveComponent("cdx-label");
                                                                                                                                                                                                  const _component_cdx_message = resolveComponent("cdx-message");
                                                                                                                                                                                                  return openBlock(), createBlock(resolveDynamicComponent(_ctx.isFieldset ? "fieldset" : "div"), {
                                                                                                                                                                                                    class: normalizeClass(["cdx-field", _ctx.rootClasses]),
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in resources/lib/codex/codex.js - About 35 mins to fix

                                                                                                                                                                                                Cognitive Complexity

                                                                                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                                Further reading

                                                                                                                                                                                                Function getOffsetParent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                Open

                                                                                                                                                                                                function getOffsetParent(element, polyfill) {
                                                                                                                                                                                                  const window2 = getWindow(element);
                                                                                                                                                                                                  if (!isHTMLElement(element) || isTopLayer(element)) {
                                                                                                                                                                                                    return window2;
                                                                                                                                                                                                  }
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in resources/lib/codex/codex.js - About 35 mins to fix

                                                                                                                                                                                                Cognitive Complexity

                                                                                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                                Further reading

                                                                                                                                                                                                Function computeCoordsFromPlacement has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                Open

                                                                                                                                                                                                function computeCoordsFromPlacement(_ref, placement, rtl) {
                                                                                                                                                                                                  let {
                                                                                                                                                                                                    reference,
                                                                                                                                                                                                    floating
                                                                                                                                                                                                  } = _ref;
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in resources/lib/codex/codex.js - About 35 mins to fix

                                                                                                                                                                                                Cognitive Complexity

                                                                                                                                                                                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                                A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                                • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                                • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                                Further reading

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                          return true;
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in resources/lib/codex/codex.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                            return true;
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in resources/lib/codex/codex.js - About 30 mins to fix

                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                              return true;
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in resources/lib/codex/codex.js - About 30 mins to fix

                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                return true;
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in resources/lib/codex/codex.js - About 30 mins to fix

                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                              return false;
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in resources/lib/codex/codex.js - About 30 mins to fix

                                                                                                                                                                                                          Function getNearestOverflowAncestor has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                          function getNearestOverflowAncestor(node) {
                                                                                                                                                                                                            const parentNode = getParentNode(node);
                                                                                                                                                                                                            if (isLastTraversableNode(parentNode)) {
                                                                                                                                                                                                              return node.ownerDocument ? node.ownerDocument.body : node.body;
                                                                                                                                                                                                            }
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js - About 25 mins to fix

                                                                                                                                                                                                          Cognitive Complexity

                                                                                                                                                                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                                          A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                                          Further reading

                                                                                                                                                                                                          Function _sfc_render$h has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                          function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
                                                                                                                                                                                                            const _component_cdx_menu_item = resolveComponent("cdx-menu-item");
                                                                                                                                                                                                            const _component_cdx_progress_bar = resolveComponent("cdx-progress-bar");
                                                                                                                                                                                                            return withDirectives((openBlock(), createElementBlock("div", {
                                                                                                                                                                                                              class: normalizeClass(["cdx-menu", _ctx.rootClasses]),
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js - About 25 mins to fix

                                                                                                                                                                                                          Cognitive Complexity

                                                                                                                                                                                                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                                                                                                                                          A method's cognitive complexity is based on a few simple rules:

                                                                                                                                                                                                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                                                                                                                                          • Code is considered more complex for each "break in the linear flow of the code"
                                                                                                                                                                                                          • Code is considered more complex when "flow breaking structures are nested"

                                                                                                                                                                                                          Further reading

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

                                                                                                                                                                                                              createVNode(_component_cdx_menu, mergeProps({
                                                                                                                                                                                                                id: _ctx.menuId,
                                                                                                                                                                                                                ref: "menu",
                                                                                                                                                                                                                selected: _ctx.modelWrapper,
                                                                                                                                                                                                                "onUpdate:selected": _cache[3] || (_cache[3] = ($event) => _ctx.modelWrapper = $event),
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5839..5857

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 232.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                              createVNode(_component_cdx_menu, mergeProps({
                                                                                                                                                                                                                id: _ctx.menuId,
                                                                                                                                                                                                                ref: "menu",
                                                                                                                                                                                                                selected: _ctx.modelWrapper,
                                                                                                                                                                                                                "onUpdate:selected": _cache[2] || (_cache[2] = ($event) => _ctx.modelWrapper = $event),
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4730..4748

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 232.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                withDirectives(createElementVNode("div", _hoisted_2$2, [
                                                                                                                                                                                                                  createVNode(_component_cdx_button, {
                                                                                                                                                                                                                    class: "cdx-tabs__scroll-button",
                                                                                                                                                                                                                    weight: "quiet",
                                                                                                                                                                                                                    type: "button",
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6816..6834

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 164.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                withDirectives(createElementVNode("div", _hoisted_5$1, [
                                                                                                                                                                                                                  createVNode(_component_cdx_button, {
                                                                                                                                                                                                                    class: "cdx-tabs__scroll-button",
                                                                                                                                                                                                                    weight: "quiet",
                                                                                                                                                                                                                    type: "button",
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6772..6790

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 164.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                          _ctx.highlightQuery ? (openBlock(), createBlock(_component_cdx_search_result_title, {
                                                                                                                                                                                                                            key: 0,
                                                                                                                                                                                                                            title: _ctx.match,
                                                                                                                                                                                                                            "search-query": _ctx.searchQuery,
                                                                                                                                                                                                                            lang: (_c = _ctx.language) == null ? void 0 : _c.match
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1960..1971

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 153.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                        _ctx.highlightQuery ? (openBlock(), createBlock(_component_cdx_search_result_title, {
                                                                                                                                                                                                                          key: 0,
                                                                                                                                                                                                                          title: _ctx.title,
                                                                                                                                                                                                                          "search-query": _ctx.searchQuery,
                                                                                                                                                                                                                          lang: (_a = _ctx.language) == null ? void 0 : _a.label
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1974..1985

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 153.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                }, _ctx.otherAttrs, {
                                                                                                                                                                                                                  onBlur: _cache[5] || (_cache[5] = (...args) => _ctx.onInputBlur && _ctx.onInputBlur(...args)),
                                                                                                                                                                                                                  onFocus: _cache[6] || (_cache[6] = (...args) => _ctx.onInputFocus && _ctx.onInputFocus(...args)),
                                                                                                                                                                                                                  onKeydown: _cache[7] || (_cache[7] = (...args) => _ctx.onInputKeydown && _ctx.onInputKeydown(...args))
                                                                                                                                                                                                                }), null, 16, _hoisted_4$4), [
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1626..1630

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 137.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                }, _ctx.otherAttrs, {
                                                                                                                                                                                                                  onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.onInputBlur && _ctx.onInputBlur(...args)),
                                                                                                                                                                                                                  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.onInputFocus && _ctx.onInputFocus(...args)),
                                                                                                                                                                                                                  onKeydown: _cache[3] || (_cache[3] = (...args) => _ctx.onInputKeydown && _ctx.onInputKeydown(...args))
                                                                                                                                                                                                                }), null, 16, _hoisted_2$d)), [
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1640..1644

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 137.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                              createElementVNode("span", _hoisted_5$4, [
                                                                                                                                                                                                                _ctx.icon ? (openBlock(), createBlock(_component_cdx_icon, {
                                                                                                                                                                                                                  key: 0,
                                                                                                                                                                                                                  icon: _ctx.icon,
                                                                                                                                                                                                                  class: "cdx-label__label__icon"
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 988..998

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 121.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              }, _ctx.otherAttrs), [
                                                                                                                                                                                                                _ctx.icon ? (openBlock(), createBlock(_component_cdx_icon, {
                                                                                                                                                                                                                  key: 0,
                                                                                                                                                                                                                  icon: _ctx.icon,
                                                                                                                                                                                                                  class: "cdx-label__label__icon"
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1011..1021

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 121.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              }, createSlots({
                                                                                                                                                                                                                default: withCtx(() => [
                                                                                                                                                                                                                  renderSlot(_ctx.$slots, "default")
                                                                                                                                                                                                                ]),
                                                                                                                                                                                                                _: 2
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1182..1195
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5503..5516
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5972..5985

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 110.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                              }, createSlots({
                                                                                                                                                                                                                default: withCtx(() => [
                                                                                                                                                                                                                  renderSlot(_ctx.$slots, "default")
                                                                                                                                                                                                                ]),
                                                                                                                                                                                                                _: 2
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1182..1195
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5503..5516
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7315..7328

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 110.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                              }, createSlots({
                                                                                                                                                                                                                default: withCtx(() => [
                                                                                                                                                                                                                  renderSlot(_ctx.$slots, "default")
                                                                                                                                                                                                                ]),
                                                                                                                                                                                                                _: 2
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5503..5516
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5972..5985
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7315..7328

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 110.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                                                                                                                                                                                                                }, createSlots({
                                                                                                                                                                                                                  default: withCtx(() => [
                                                                                                                                                                                                                    renderSlot(_ctx.$slots, "label")
                                                                                                                                                                                                                  ]),
                                                                                                                                                                                                                  _: 2
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1182..1195
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5972..5985
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7315..7328

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 110.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 {
                                                                                                                                                                                                                activeTab,
                                                                                                                                                                                                                activeTabIndex,
                                                                                                                                                                                                                activeTabId,
                                                                                                                                                                                                                currentDirection,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                          resources/lib/pako/pako_deflate.js on lines 1428..1435

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 91.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              return {
                                                                                                                                                                                                                computedInputId,
                                                                                                                                                                                                                descriptionId,
                                                                                                                                                                                                                wrappedModel,
                                                                                                                                                                                                                isClearable,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1558..1575
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5790..5807

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 84.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              return {
                                                                                                                                                                                                                rootElement,
                                                                                                                                                                                                                textInput,
                                                                                                                                                                                                                menu,
                                                                                                                                                                                                                menuId,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1558..1575
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2945..2962

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 84.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              return {
                                                                                                                                                                                                                rootElement,
                                                                                                                                                                                                                input,
                                                                                                                                                                                                                inputValue,
                                                                                                                                                                                                                rootClasses,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2945..2962
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5790..5807

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 84.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                  case "ArrowUp":
                                                                                                                                                                                                                    maybePrevent();
                                                                                                                                                                                                                    if (props.expanded) {
                                                                                                                                                                                                                      if (highlightedMenuItem.value === null) {
                                                                                                                                                                                                                        handleMenuItemChange("highlightedViaKeyboard", findSelectedMenuItem());
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2461..2472

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 79.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                  case "ArrowDown":
                                                                                                                                                                                                                    maybePrevent();
                                                                                                                                                                                                                    if (props.expanded) {
                                                                                                                                                                                                                      if (highlightedMenuItem.value === null) {
                                                                                                                                                                                                                        handleMenuItemChange("highlightedViaKeyboard", findSelectedMenuItem());
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2449..2460

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 79.

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

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

                                                                                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 highlightedId = computed(() => {
                                                                                                                                                                                                                var _a, _b;
                                                                                                                                                                                                                return (_b = (_a = menu.value) == null ? void 0 : _a.getHighlightedMenuItem()) == null ? void 0 : _b.id;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4606..4609
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6291..6294
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7479..7482

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                  case "End":
                                                                                                                                                                                                                    maybePrevent();
                                                                                                                                                                                                                    if (props.expanded) {
                                                                                                                                                                                                                      if (highlightedMenuItem.value === null) {
                                                                                                                                                                                                                        handleMenuItemChange("highlightedViaKeyboard", findSelectedMenuItem());
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2473..2484

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              const highlightedId = computed(() => {
                                                                                                                                                                                                                var _a, _b;
                                                                                                                                                                                                                return (_b = (_a = menu.value) == null ? void 0 : _a.getHighlightedMenuItem()) == null ? void 0 : _b.id;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4606..4609
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5717..5720
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6291..6294

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              const highlightedId = computed(() => {
                                                                                                                                                                                                                var _a, _b;
                                                                                                                                                                                                                return (_b = (_a = menu.value) == null ? void 0 : _a.getHighlightedMenuItem()) == null ? void 0 : _b.id;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4606..4609
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5717..5720
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7479..7482

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                    renderSlot(_ctx.$slots, "default", { button }, () => [
                                                                                                                                                                                                                      button.icon ? (openBlock(), createBlock(_component_cdx_icon, {
                                                                                                                                                                                                                        key: 0,
                                                                                                                                                                                                                        icon: button.icon
                                                                                                                                                                                                                      }, null, 8, ["icon"])) : createCommentVNode("", true),
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7172..7178

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                  case "Home":
                                                                                                                                                                                                                    maybePrevent();
                                                                                                                                                                                                                    if (props.expanded) {
                                                                                                                                                                                                                      if (highlightedMenuItem.value === null) {
                                                                                                                                                                                                                        handleMenuItemChange("highlightedViaKeyboard", findSelectedMenuItem());
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2485..2496

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              const highlightedId = computed(() => {
                                                                                                                                                                                                                var _a, _b;
                                                                                                                                                                                                                return (_b = (_a = menu.value) == null ? void 0 : _a.getHighlightedMenuItem()) == null ? void 0 : _b.id;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5717..5720
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6291..6294
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7479..7482

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                    }, () => [
                                                                                                                                                                                                                      button.icon ? (openBlock(), createBlock(_component_cdx_icon, {
                                                                                                                                                                                                                        key: 0,
                                                                                                                                                                                                                        icon: button.icon
                                                                                                                                                                                                                      }, null, 8, ["icon"])) : createCommentVNode("", true),
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 617..623

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 74.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                            return {
                                                                                                                                                                                                              top: overflow.top - rect.height,
                                                                                                                                                                                                              right: overflow.right - rect.width,
                                                                                                                                                                                                              bottom: overflow.bottom - rect.height,
                                                                                                                                                                                                              left: overflow.left - rect.width
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/jquery.ui/jquery.ui.effect-scale.js on lines 87..92

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 70.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              return {
                                                                                                                                                                                                                listBoxStyle,
                                                                                                                                                                                                                rootClasses,
                                                                                                                                                                                                                rootStyle,
                                                                                                                                                                                                                otherAttrs,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/moment/moment.js on lines 2004..2022

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 67.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                    createElementVNode("div", {
                                                                                                                                                                                                                      ref: "focusTrapStart",
                                                                                                                                                                                                                      tabindex: "0",
                                                                                                                                                                                                                      onFocus: _cache[0] || (_cache[0] = (...args) => _ctx.focusLast && _ctx.focusLast(...args))
                                                                                                                                                                                                                    }, null, 544),
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5185..5189

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                    createElementVNode("div", {
                                                                                                                                                                                                                      ref: "focusTrapEnd",
                                                                                                                                                                                                                      tabindex: "0",
                                                                                                                                                                                                                      onFocus: _cache[4] || (_cache[4] = (...args) => _ctx.focusFirst && _ctx.focusFirst(...args))
                                                                                                                                                                                                                    }, null, 544)
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5092..5096

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

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

                                                                                                                                                                                                          const platform = {
                                                                                                                                                                                                            convertOffsetParentRelativeRectToViewportRelativeRect,
                                                                                                                                                                                                            getDocumentElement,
                                                                                                                                                                                                            getClippingRect,
                                                                                                                                                                                                            getOffsetParent,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/vue/vue.global.js on lines 7809..7820

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                        _cache[4] || (_cache[4] = withKeys(withModifiers((...args) => _ctx.onLeftArrowKeypress && _ctx.onLeftArrowKeypress(...args), ["prevent"]), ["left"]))
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6807..6807
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6808..6808
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7303..7303

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                        _cache[2] || (_cache[2] = withKeys(withModifiers((...args) => _ctx.onRightArrowKeypress && _ctx.onRightArrowKeypress(...args), ["prevent"]), ["right"])),
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6808..6808
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6809..6809
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7303..7303

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                        _cache[3] || (_cache[3] = withKeys(withModifiers((...args) => _ctx.onDownArrowKeypress && _ctx.onDownArrowKeypress(...args), ["prevent"]), ["down"])),
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6807..6807
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6809..6809
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7303..7303

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers((...args) => _ctx.clickInput && _ctx.clickInput(...args), ["prevent"]), ["enter"]))
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6807..6807
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6808..6808
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6809..6809

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                      "no-results": withCtx(() => [
                                                                                                                                                                                                                        createElementVNode("div", {
                                                                                                                                                                                                                          class: normalizeClass(["cdx-menu-item__content cdx-typeahead-search__menu-message", _ctx.menuMessageClass])
                                                                                                                                                                                                                        }, [
                                                                                                                                                                                                                          createElementVNode("span", _hoisted_3, [
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7775..7783

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                if (selectedMenuItem.value && selectedMenuItem.value.label !== newVal && selectedMenuItem.value.value !== newVal) {
                                                                                                                                                                                                                  modelWrapper.value = null;
                                                                                                                                                                                                                }
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7522..7524

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                if (selectedResult.value && selectedResult.value.label !== newVal && selectedResult.value.value !== newVal) {
                                                                                                                                                                                                                  selection.value = null;
                                                                                                                                                                                                                }
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5734..5736

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                      pending: withCtx(() => [
                                                                                                                                                                                                                        createElementVNode("div", {
                                                                                                                                                                                                                          class: normalizeClass(["cdx-menu-item__content cdx-typeahead-search__menu-message", _ctx.menuMessageClass])
                                                                                                                                                                                                                        }, [
                                                                                                                                                                                                                          createElementVNode("span", _hoisted_2, [
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7784..7792

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              const otherAttrsMinusId = computed(() => {
                                                                                                                                                                                                                const _a = otherAttrs.value, { id } = _a, everythingElse = __objRest(_a, ["id"]);
                                                                                                                                                                                                                return everythingElse;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6287..6290
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6940..6943

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              const otherAttrsMinusId = computed(() => {
                                                                                                                                                                                                                const _a = otherAttrs.value, { id } = _a, everythingElse = __objRest(_a, ["id"]);
                                                                                                                                                                                                                return everythingElse;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2914..2917
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6940..6943

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              const otherAttrsMinusId = computed(() => {
                                                                                                                                                                                                                const _a = otherAttrs.value, { id } = _a, everythingElse = __objRest(_a, ["id"]);
                                                                                                                                                                                                                return everythingElse;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2914..2917
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6287..6290

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                      availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
                                                                                                                                                                                                                    }
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 3559..3561

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                      _ctx.showThumbnail ? (openBlock(), createBlock(_component_cdx_thumbnail, {
                                                                                                                                                                                                                        key: 0,
                                                                                                                                                                                                                        thumbnail: _ctx.thumbnail,
                                                                                                                                                                                                                        class: "cdx-menu-item__thumbnail"
                                                                                                                                                                                                                      }, null, 8, ["thumbnail"])) : _ctx.icon ? (openBlock(), createBlock(_component_cdx_icon, {
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 793..802

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                    if (isYAxis) {
                                                                                                                                                                                                                      availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 3561..3563

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                _ctx.thumbnail || _ctx.forceThumbnail ? (openBlock(), createBlock(_component_cdx_thumbnail, {
                                                                                                                                                                                                                  key: 0,
                                                                                                                                                                                                                  thumbnail: _ctx.thumbnail,
                                                                                                                                                                                                                  "placeholder-icon": _ctx.customPlaceholderIcon,
                                                                                                                                                                                                                  class: "cdx-card__thumbnail"
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1950..1958

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 53.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              onMousedown: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onMouseDown && _ctx.onMouseDown(...args), ["prevent"])),
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5090..5090

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 52.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                    onKeyup: _cache[6] || (_cache[6] = withKeys((...args) => _ctx.close && _ctx.close(...args), ["escape"]))
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1939..1939

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 52.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                  }, {
                                                                                                                                                                                                                    default: withCtx(() => [
                                                                                                                                                                                                                      createVNode(_component_cdx_icon, {
                                                                                                                                                                                                                        icon: _ctx.cdxIconClose,
                                                                                                                                                                                                                        "icon-label": _ctx.dismissButtonLabel
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5127..5135

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 51.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              onLeftArrowKeypress() {
                                                                                                                                                                                                                if (this.currentDirection === "rtl") {
                                                                                                                                                                                                                  this.next(true);
                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                  this.prev(true);
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6728..6734

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 51.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                                          }, {
                                                                                                                                                                                                                            default: withCtx(() => [
                                                                                                                                                                                                                              createVNode(_component_cdx_icon, {
                                                                                                                                                                                                                                icon: _ctx.cdxIconClose,
                                                                                                                                                                                                                                "icon-label": _ctx.closeButtonLabel
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5361..5369

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 51.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              onRightArrowKeypress() {
                                                                                                                                                                                                                if (this.currentDirection === "rtl") {
                                                                                                                                                                                                                  this.prev(true);
                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                  this.next(true);
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 6718..6724

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 51.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              var rejected = (value) => {
                                                                                                                                                                                                                try {
                                                                                                                                                                                                                  step(generator.throw(value));
                                                                                                                                                                                                                } catch (e) {
                                                                                                                                                                                                                  reject(e);
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 34..40

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                createVNode(_component_cdx_text_input, mergeProps({
                                                                                                                                                                                                                  ref: "input",
                                                                                                                                                                                                                  modelValue: _ctx.modelWrapper,
                                                                                                                                                                                                                  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.modelWrapper = $event)
                                                                                                                                                                                                                }, _ctx.otherAttrs, {
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5819..5823

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                              createVNode(_component_cdx_text_input, mergeProps({
                                                                                                                                                                                                                ref: "textInput",
                                                                                                                                                                                                                modelValue: _ctx.inputValue,
                                                                                                                                                                                                                "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event)
                                                                                                                                                                                                              }, _ctx.otherAttrs, {
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4693..4697

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                              var fulfilled = (value) => {
                                                                                                                                                                                                                try {
                                                                                                                                                                                                                  step(generator.next(value));
                                                                                                                                                                                                                } catch (e) {
                                                                                                                                                                                                                  reject(e);
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 41..47

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 6 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                "description-id": _ctx.$slots.description && _ctx.$slots.description().length > 0 ? _ctx.descriptionId : void 0,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 5 other locations - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1168..1168
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5957..5957
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5969..5969
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7299..7299
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7312..7312

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 6 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                "aria-describedby": _ctx.$slots.description && _ctx.$slots.description().length > 0 ? _ctx.descriptionId : void 0,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 5 other locations - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1168..1168
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1180..1180
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5957..5957
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5969..5969
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7312..7312

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 6 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                "aria-describedby": _ctx.$slots.description && _ctx.$slots.description().length > 0 ? _ctx.descriptionId : void 0,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 5 other locations - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1168..1168
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1180..1180
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5969..5969
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7299..7299
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7312..7312

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 6 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                "aria-describedby": _ctx.$slots.description && _ctx.$slots.description().length > 0 ? _ctx.descriptionId : void 0,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 5 other locations - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1180..1180
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5957..5957
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5969..5969
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7299..7299
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7312..7312

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 6 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                "description-id": _ctx.$slots.description && _ctx.$slots.description().length > 0 ? _ctx.descriptionId : void 0,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 5 other locations - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1168..1168
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1180..1180
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5957..5957
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7299..7299
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7312..7312

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 6 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                "description-id": _ctx.$slots.description && _ctx.$slots.description().length > 0 ? _ctx.descriptionId : void 0,
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 5 other locations - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1168..1168
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 1180..1180
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5957..5957
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 5969..5969
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7299..7299

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                    const maximumClippingHeight = height - overflow.top - overflow.bottom;
                                                                                                                                                                                                                    availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
                                                                                                                                                                                                                  }
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 3547..3550

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                                  if (isYAxis) {
                                                                                                                                                                                                                    const maximumClippingWidth = width - overflow.left - overflow.right;
                                                                                                                                                                                                                    availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 3550..3553

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                                                                                                                                                                                                                    if (props.expanded) {
                                                                                                                                                                                                                      if (highlightedMenuItem.value && highlightedViaKeyboard.value) {
                                                                                                                                                                                                                        emit("update:selected", highlightedMenuItem.value.value);
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      emit("update:expanded", false);
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2432..2439

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                              return {
                                                                                                                                                                                                                input,
                                                                                                                                                                                                                inputId,
                                                                                                                                                                                                                descriptionId,
                                                                                                                                                                                                                rootClasses,
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/pako/pako_deflate.js on lines 3448..3458
                                                                                                                                                                                                          resources/src/mediawiki.page.ready/checkboxHack.js on lines 439..449

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                                                                                                                                                                                                                    if (props.expanded) {
                                                                                                                                                                                                                      if (highlightedMenuItem.value && highlightedViaKeyboard.value) {
                                                                                                                                                                                                                        emit("update:selected", highlightedMenuItem.value.value);
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      emit("update:expanded", false);
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2442..2447

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                              buttons: {
                                                                                                                                                                                                                type: Array,
                                                                                                                                                                                                                required: true,
                                                                                                                                                                                                                validator: (value) => Array.isArray(value) && value.length >= 1
                                                                                                                                                                                                              },
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 573..577

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                                                                                                                                                                                                              buttons: {
                                                                                                                                                                                                                type: Array,
                                                                                                                                                                                                                required: true,
                                                                                                                                                                                                                validator: (value) => Array.isArray(value) && value.length >= 1
                                                                                                                                                                                                              },
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 7085..7089

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 placementOption = computed(() => {
                                                                                                                                                                                                              var _unref2;
                                                                                                                                                                                                              return (_unref2 = unref(options.placement)) != null ? _unref2 : "bottom";
                                                                                                                                                                                                            });
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4284..4287

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              const overriddenDir = computed(() => {
                                                                                                                                                                                                                var _a;
                                                                                                                                                                                                                return (_a = props.dir) != null ? _a : computedDir.value;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 225..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 46.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                            const strategyOption = computed(() => {
                                                                                                                                                                                                              var _unref3;
                                                                                                                                                                                                              return (_unref3 = unref(options.strategy)) != null ? _unref3 : "absolute";
                                                                                                                                                                                                            });
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4280..4283

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                              const overriddenLang = computed(() => {
                                                                                                                                                                                                                var _a;
                                                                                                                                                                                                                return (_a = props.lang) != null ? _a : computedLang.value;
                                                                                                                                                                                                              });
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 221..224

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                            const openOption = computed(() => {
                                                                                                                                                                                                              var _unref;
                                                                                                                                                                                                              return (_unref = unref(options.open)) != null ? _unref : true;
                                                                                                                                                                                                            });
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4288..4291

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                            const transformOption = computed(() => {
                                                                                                                                                                                                              var _unref4;
                                                                                                                                                                                                              return (_unref4 = unref(options.transform)) != null ? _unref4 : true;
                                                                                                                                                                                                            });
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4275..4278

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                            onMounted(() => {
                                                                                                                                                                                                              mounted = true;
                                                                                                                                                                                                              if (templateRef.value) {
                                                                                                                                                                                                                observer.observe(templateRef.value);
                                                                                                                                                                                                              }
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 4771..4776

                                                                                                                                                                                                          Duplicated Code

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

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

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

                                                                                                                                                                                                          Tuning

                                                                                                                                                                                                          This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                          Refactorings

                                                                                                                                                                                                          Further Reading

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

                                                                                                                                                                                                            onMounted(() => {
                                                                                                                                                                                                              mounted = true;
                                                                                                                                                                                                              if (templateRef.value) {
                                                                                                                                                                                                                observer.observe(templateRef.value);
                                                                                                                                                                                                              }
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in resources/lib/codex/codex.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                          resources/lib/codex/codex.js on lines 2085..2090

                                                                                                                                                                                                          Duplicated Code

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

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

                                                                                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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