oplik0/cherrydoor

View on GitHub

Showing 650 of 650 total issues

Avoid deeply nested control flow statements.
Open

      if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
        createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
      } catch (error) {
        CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
      }
Severity: Major
Found in cherrydoor/static/components/VueTimepicker.js - About 45 mins to fix

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

    function render(_ctx, _cache, $props, $setup, $data, $options) {
    Severity: Minor
    Found in cherrydoor/static/components/VueTimepicker.js - About 45 mins to fix

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

        function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
      Severity: Minor
      Found in cherrydoor/static/components/VueTimepicker.js - About 45 mins to fix

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

                        if (['k', 'kk'].includes(token)) {
                          value = hourValue === 0 ? 24 : hourValue;
                        } else {
                          value = hourValue % 24;
                        }
        Severity: Minor
        Found in cherrydoor/static/components/VueTimepicker.js and 1 other location - About 45 mins to fix
        cherrydoor/static/components/VueTimepicker.js on lines 6297..6301

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 50.

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

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

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

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

        Refactorings

        Further Reading

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

            if (node.children.length) {
                    context.onError(createDOMCompilerError(50 /* X_V_HTML_WITH_CHILDREN */, loc));
                    node.children.length = 0;
            }
        Severity: Minor
        Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 45 mins to fix
        cherrydoor/static/js/vue-dev.js on lines 14250..14253

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 50.

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

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

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

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

        Refactorings

        Further Reading

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

                        } else if (['k', 'kk'].includes(token)) {
                          value = hourValue === 12 ? 24 : hourValue;
                        } else {
                          value = hourValue % 12;
                        }
        Severity: Minor
        Found in cherrydoor/static/components/VueTimepicker.js and 1 other location - About 45 mins to fix
        cherrydoor/static/components/VueTimepicker.js on lines 6303..6307

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 50.

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

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

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

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

        Refactorings

        Further Reading

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

            if (node.children.length) {
                    context.onError(createDOMCompilerError(52 /* X_V_TEXT_WITH_CHILDREN */, loc));
                    node.children.length = 0;
            }
        Severity: Minor
        Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 45 mins to fix
        cherrydoor/static/js/vue-dev.js on lines 14234..14237

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 50.

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

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

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

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

        Refactorings

        Further Reading

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

            if (!hadKey) {
                    key = toRaw(key);
                    hadKey = has.call(target, key);
            }
            else {
        Severity: Minor
        Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 40 mins to fix
        cherrydoor/static/js/vue-dev.js on lines 783..789

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 49.

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

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

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

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

        Refactorings

        Further Reading

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

            if (!hadKey) {
                    key = toRaw(key);
                    hadKey = has.call(target, key);
            }
            else {
        Severity: Minor
        Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 40 mins to fix
        cherrydoor/static/js/vue-dev.js on lines 804..810

        Duplicated Code

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

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

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

        Consider simplifying this complex logical expression.
        Open

                    if (parentSuspense &&
                            parentSuspense.pendingBranch &&
                            !parentSuspense.isUnmounted &&
                            instance.asyncDep &&
                            !instance.asyncResolved &&
        Severity: Major
        Found in cherrydoor/static/js/vue-dev.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

              if (
              // always force full diff in dev
              // - #1942 if hmr is enabled with sfc component
              // - vite#872 non-sfc component used by sfc component
              !((instance.type.__hmrId ||
          Severity: Major
          Found in cherrydoor/static/js/vue-dev.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                                if ((include && (!name || !matches(include, name))) ||
                                        (exclude && name && matches(exclude, name))) {
                                        current = vnode;
                                        return rawVNode;
                                }
            Severity: Major
            Found in cherrydoor/static/js/vue-dev.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                          else if (hasVIs ||
                                  isCoreComponent(tag) ||
                                  (options.isBuiltInComponent && options.isBuiltInComponent(tag)) ||
                                  /^[A-Z]/.test(tag) ||
                                  tag === 'component') {
              Severity: Major
              Found in cherrydoor/static/js/vue-dev.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                    if (isBlockTreeEnabled > 0 &&
                            // avoid a block node from tracking itself
                            !isBlockNode &&
                            // has current parent block
                            currentBlock &&
                Severity: Major
                Found in cherrydoor/static/js/vue-dev.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                                  if (
                                      instance &&
                                      to &&
                                      // if there is no instance but to and from are the same this might be
                                      // the first visit
                  Severity: Major
                  Found in cherrydoor/static/js/vue-router.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                      if (
                        'abbc'.split(/(b)*/)[1] == 'c' ||
                        'test'.split(/(?:)/, -1).length != 4 ||
                        'ab'.split(/(?:ab)*/).length != 2 ||
                        '.'.split(/(.?)(.?)/).length != 4 ||
                    Severity: Major
                    Found in cherrydoor/static/components/VueTimepicker.js - About 40 mins to fix

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

                            if (this.apm && this.apmType) {
                              formatString = formatString.replace(new RegExp(this.apmType, 'g'), this.apm);
                            }
                      Severity: Minor
                      Found in cherrydoor/static/components/VueTimepicker.js and 1 other location - About 40 mins to fix
                      cherrydoor/static/components/VueTimepicker.js on lines 5525..5527

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 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 (this.second && this.secondType) {
                              formatString = formatString.replace(new RegExp(this.secondType, 'g'), this.second);
                            }
                      Severity: Minor
                      Found in cherrydoor/static/components/VueTimepicker.js and 1 other location - About 40 mins to fix
                      cherrydoor/static/components/VueTimepicker.js on lines 5529..5531

                      Duplicated Code

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

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

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

                          ["FILTERS" /* FILTERS */]: {
                                  message: `filters have been removed in Vue 3. ` +
                                          `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +
                                          `Use method calls or computed properties instead.`,
                                  link: `https://v3.vuejs.org/guide/migration/filters.html`
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 40 mins to fix
                      cherrydoor/static/js/vue-dev.js on lines 1848..1853

                      Duplicated Code

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

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

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

                          [4 /* NAVIGATION_ABORTED */]({ from, to }) {
                              return `Navigation aborted from "${from.fullPath}" to "${to.fullPath}" via a navigation guard.`;
                          },
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-router.js and 1 other location - About 40 mins to fix
                      cherrydoor/static/js/vue-router.js on lines 886..888

                      Duplicated Code

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

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

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

                      Severity
                      Category
                      Status
                      Source
                      Language