oplik0/cherrydoor

View on GitHub

Showing 650 of 650 total issues

Function getTransitionInfo has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getTransitionInfo(el, expectedType) {
    const styles = window.getComputedStyle(el);
    // JSDOM may return undefined for transition properties
    const getStyleProperties = (key) => (styles[key] || '').split(', ');
    const transitionDelays = getStyleProperties(TRANSITION + 'Delay');
Severity: Minor
Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

    Function hourRangeIn24HrFormat has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        hourRangeIn24HrFormat: function hourRangeIn24HrFormat() {
          var _this2 = this;
    
          if (!this.hourType || !this.opts.hourRange) {
            return false;
    Severity: Minor
    Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

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

      /***/ (function(module, exports, __webpack_require__) {
      
      "use strict";
      
      var $ = __webpack_require__("23e7");
      Severity: Minor
      Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

        Function b727 has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        /***/ (function(module, exports, __webpack_require__) {
        
        var bind = __webpack_require__("0366");
        var IndexedObject = __webpack_require__("44ad");
        var toObject = __webpack_require__("7b0b");
        Severity: Minor
        Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

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

                      runGuardQueue(guards)
                          .then(() => {
                              // check global guards beforeEach
                              guards = [];
                              for (const guard of beforeGuards.list()) {
          Severity: Major
          Found in cherrydoor/static/js/vue-router.js and 1 other location - About 1 hr to fix
          cherrydoor/static/js/vue-router.js on lines 3259..3327

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 72.

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

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

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

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

          Refactorings

          Further Reading

          Function shouldUpdateComponent has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
              const { props: prevProps, children: prevChildren, component } = prevVNode;
              const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
              const emits = component.emitsOptions;
              // Parent component's render function was hot-updated. Since this may have
          Severity: Minor
          Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

            Function debugLog has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                debugLog: function debugLog(logText) {
                  var _this20 = this;
            
                  if (!logText || !logText.length) {
                    return;
            Severity: Minor
            Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

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

                          if (children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
                                  patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
                                  patchFlagText += `, ${PatchFlagNames[2048 /* DEV_ROOT_FRAGMENT */]}`;
                          }
              Severity: Major
              Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 1 hr to fix
              cherrydoor/static/js/vue-dev.js on lines 12718..12721

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

              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 cmd_enter has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      cmd_enter() {
                          if (this.value) {
                              this.history_[this.history_.length] = this.value;
                              this.histpos_ = this.history_.length;
                          }
              Severity: Minor
              Found in cherrydoor/static/components/v-shell.js - About 1 hr to fix

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

                                    if (children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
                                            patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
                                            patchFlagText += `, ${PatchFlagNames[2048 /* DEV_ROOT_FRAGMENT */]}`;
                                    }
                Severity: Major
                Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 1 hr to fix
                cherrydoor/static/js/vue-dev.js on lines 11831..11834

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

                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 (let i = 0; i < nextKeys.length; i++) {
                            const key = nextKeys[i];
                            if (nextProps[key] !== prevProps[key] &&
                                    !isEmitListener(emitsOptions, key)) {
                                    return true;
                Severity: Major
                Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 1 hr to fix
                cherrydoor/static/js/vue-dev.js on lines 2631..2637

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

                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 (let i = 0; i < dynamicProps.length; i++) {
                                            const key = dynamicProps[i];
                                            if (nextProps[key] !== prevProps[key] &&
                                                    !isEmitListener(emits, key)) {
                                                    return true;
                Severity: Major
                Found in cherrydoor/static/js/vue-dev.js and 1 other location - About 1 hr to fix
                cherrydoor/static/js/vue-dev.js on lines 2666..2672

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

                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 patchDOMProp has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function patchDOMProp(el, key, value, 
                // the following args are passed only due to potential innerHTML/textContent
                // overriding existing VNodes, in which case the old tree must be properly
                // unmounted.
                prevChildren, parentComponent, parentSuspense, unmountChildren) {
                Severity: Minor
                Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                  Function 60da has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  /***/ (function(module, exports, __webpack_require__) {
                  
                  "use strict";
                  
                  var DESCRIPTORS = __webpack_require__("83ab");
                  Severity: Minor
                  Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

                    Function splice has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      splice: function splice(start, deleteCount /* , ...items */) {
                        var O = toObject(this);
                        var len = toLength(O.length);
                        var actualStart = toAbsoluteIndex(start, len);
                        var argumentsLength = arguments.length;
                    Severity: Minor
                    Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

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

                      function parseForExpression(input, context) {
                          const loc = input.loc;
                          const exp = input.content;
                          const inMatch = exp.match(forAliasRE);
                          if (!inMatch)
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-dev.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 createSetter has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function createSetter(shallow = false) {
                          return function set(target, key, value, receiver) {
                                  let oldValue = target[key];
                                  if (!shallow) {
                                          value = toRaw(value);
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-dev.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 finishComponentSetup has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function finishComponentSetup(instance, isSSR, skipOptions) {
                          const Component = instance.type;
                          // template / render function normalization
                          if (!instance.render) {
                                  // could be set from setup()
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-dev.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 normalizeClass has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function normalizeClass(value) {
                          let res = '';
                          if (isString(value)) {
                                  res = value;
                          }
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-dev.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 genFunctionExpression has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function genFunctionExpression(node, context) {
                          const { push, indent, deindent, scopeId, mode } = context;
                          const { params, returns, body, newline, isSlot } = node;
                          if (isSlot) {
                                  // wrap slot functions with owner context
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-dev.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

                      Severity
                      Category
                      Status
                      Source
                      Language