oplik0/cherrydoor

View on GitHub

Showing 650 of 650 total issues

Function exports has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
Severity: Major
Found in cherrydoor/static/components/VueTimepicker.js - About 50 mins to fix

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

                for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
                        if (checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
                                continue;
                        }
                        activePostFlushCbs[postFlushIndex]();
    Severity: Minor
    Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 50 mins to fix
    cherrydoor/static/js/vue-dev.js on lines 1569..1574

    Duplicated Code

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

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

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

                for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {
                        if (checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {
                                continue;
                        }
                        activePreFlushCbs[preFlushIndex]();
    Severity: Minor
    Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 50 mins to fix
    cherrydoor/static/js/vue-dev.js on lines 1596..1601

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

        if (!hadKey) {
                trigger(target, "add" /* ADD */, key, value);
        }
        else if (hasChanged(value, oldValue)) {
                trigger(target, "set" /* SET */, key, value, oldValue);
    Severity: Minor
    Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 50 mins to fix
    cherrydoor/static/js/vue-dev.js on lines 659..664

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 51.

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

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

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

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

    Refactorings

    Further Reading

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

                        if (!hadKey) {
                                trigger(target, "add" /* ADD */, key, value);
                        }
                        else if (hasChanged(value, oldValue)) {
                                trigger(target, "set" /* SET */, key, value, oldValue);
    Severity: Minor
    Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 50 mins to fix
    cherrydoor/static/js/vue-dev.js on lines 792..797

    Duplicated Code

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

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

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

              if (section === 'minute') {
                this.debugLog("The minute list is empty due to the \"minute-range\" config\nminute-range: ".concat(JSON.stringify(this.minuteRange), "\nminute-interval: ").concat(this.opts.minuteInterval));
              } else {
    Severity: Minor
    Found in cherrydoor/static/components/VueTimepicker.js and 1 other location - About 50 mins to fix
    cherrydoor/static/components/VueTimepicker.js on lines 6507..6509

    Duplicated Code

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

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

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

              } else {
                this.debugLog("The second list is empty due to the \"second-range\" config\nsecond-range: ".concat(JSON.stringify(this.secondRange), "\nsecond-interval: ").concat(this.opts.secondInterval));
              }
    Severity: Minor
    Found in cherrydoor/static/components/VueTimepicker.js and 1 other location - About 50 mins to fix
    cherrydoor/static/components/VueTimepicker.js on lines 6505..6507

    Duplicated Code

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

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

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

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

    function normalizeBase(base) {
        if (!base) {
            if (isBrowser) {
                // respect <base> tag
                const baseEl = document.querySelector("base");
    Severity: Minor
    Found in cherrydoor/static/js/vue-router.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

    Avoid deeply nested control flow statements.
    Open

                            if (optional) {
                                // if we have more than one optional param like /:a?-static we
                                // don't need to care about the optional param
                                if (segment.length < 2) {
                                    // remove the last slash as we could be at the end
    Severity: Major
    Found in cherrydoor/static/js/vue-router.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                      if (optional) subPattern += "?";
      Severity: Major
      Found in cherrydoor/static/js/vue-router.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                        if (repeatable) subSegmentScore += -20 /* BonusRepeatable */;
        Severity: Major
        Found in cherrydoor/static/js/vue-router.js - About 45 mins to fix

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

          function trigger(target, type, key, newValue, oldValue, oldTarget) {
          Severity: Minor
          Found in cherrydoor/static/js/vue-dev.js - About 45 mins to fix

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

            function baseCompile(template, options = {}) {
                const onError = options.onError || defaultOnError;
                const isModuleMode = options.mode === 'module';
                /* istanbul ignore if */
                {
            Severity: Minor
            Found in cherrydoor/static/js/vue-dev.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 resolvePropValue has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function resolvePropValue(options, props, key, value, instance, isAbsent) {
            Severity: Minor
            Found in cherrydoor/static/js/vue-dev.js - About 45 mins to fix

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

              function get$1(target, key, isReadonly = false, isShallow = false) {
                  // #1772: readonly(reactive(Map)) should return readonly + reactive version
                  // of the value
                  target = target["__v_raw" /* RAW */];
                  const rawTarget = toRaw(target);
              Severity: Minor
              Found in cherrydoor/static/js/vue-dev.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 set has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

                  set({ _: instance }, key, value) {
                          const { data, setupState, ctx } = instance;
                          if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
                                  setupState[key] = value;
                          }
              Severity: Minor
              Found in cherrydoor/static/js/vue-dev.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

              Avoid deeply nested control flow statements.
              Open

                              if (optional) subSegmentScore += -8 /* BonusOptional */;
              Severity: Major
              Found in cherrydoor/static/js/vue-router.js - About 45 mins to fix

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

                function parseURL(parseQuery, location, currentLocation = "/") {
                    let path,
                        query = {},
                        searchString = "",
                        hash = "";
                Severity: Minor
                Found in cherrydoor/static/js/vue-router.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

                Avoid deeply nested control flow statements.
                Open

                                if (re === ".*") subSegmentScore += -50 /* BonusWildcard */;
                Severity: Major
                Found in cherrydoor/static/js/vue-router.js - About 45 mins to fix

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

                  function queueCb(cb, activeQueue, pendingQueue, index) {
                      if (!isArray(cb)) {
                              if (!activeQueue ||
                                      !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) {
                                      pendingQueue.push(cb);
                  Severity: Minor
                  Found in cherrydoor/static/js/vue-dev.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

                  Severity
                  Category
                  Status
                  Source
                  Language