oplik0/cherrydoor

View on GitHub

Showing 556 of 650 total issues

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

    const load = () => {
            let thisRequest;
            return (pendingRequest ||
                    (thisRequest = pendingRequest = loader()
                            .catch(err => {
Severity: Minor
Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

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

    function looseEqual(a, b) {
        if (a === b)
                return true;
        let aValidType = isDate(a);
        let bValidType = isDate(b);
    Severity: Minor
    Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

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

      function renderList(source, renderItem) {
          let ret;
          if (isArray(source) || isString(source)) {
                  ret = new Array(source.length);
                  for (let i = 0, l = source.length; i < l; i++) {
      Severity: Minor
      Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

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

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

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

              validHoursList: function validHoursList() {
                var _this3 = this;
          
                if (!this.manualInput) {
                  return false;
          Severity: Minor
          Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                                                if (!prev ||
                                                        !next ||
                                                        (!preserve &&
                                                                (prev.type === 3 /* COMMENT */ ||
                                                                        next.type === 3 /* COMMENT */ ||
            Severity: Critical
            Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                                  if (!hasText ||
                                          // if this is a plain element with a single text child, leave it
                                          // as-is since the runtime has dedicated fast path for this by directly
                                          // setting textContent of the element.
                                          // for component root it's always normalized anyway.
              Severity: Critical
              Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                  if (
                    !DELEGATES_TO_SYMBOL ||
                    !DELEGATES_TO_EXEC ||
                    (KEY === 'replace' && !(
                      REPLACE_SUPPORTS_NAMED_GROUPS &&
                Severity: Critical
                Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                        if (this.inUse.hour && !this.hour || this.inUse.minute && !this.minute || this.inUse.second && !this.second || this.inUse.apm && !this.apm) {
                          return false;
                        }
                  Severity: Critical
                  Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

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

                        function handleRedirectRecord(to) {
                            const lastMatched = to.matched[to.matched.length - 1];
                            if (lastMatched && lastMatched.redirect) {
                                const { redirect } = lastMatched;
                                let newTargetLocation =
                    Severity: Minor
                    Found in cherrydoor/static/js/vue-router.js - About 1 hr to fix

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

                      const updateSlots = (instance, children, optimized) => {
                          const { vnode, slots } = instance;
                          let needDeletionCheck = true;
                          let deletionComparisonTarget = EMPTY_OBJ;
                          if (vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

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

                            const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => {
                                    const instance = (initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense));
                                    if (instance.type.__hmrId) {
                                            registerHMR(instance);
                                    }
                        Severity: Minor
                        Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

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

                          /***/ (function(module, exports) {
                          
                          // iterable DOM collections
                          // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
                          module.exports = {
                          Severity: Minor
                          Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

                            Function created has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                created(el, _, vnode) {
                                        el._assign = getModelAssigner(vnode);
                                        addEventListener(el, 'change', () => {
                                                const modelValue = el._modelValue;
                                                const elementValue = getValue(el);
                            Severity: Minor
                            Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                              Function patchChildren has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
                                          const c1 = n1 && n1.children;
                                          const prevShapeFlag = n1 ? n1.shapeFlag : 0;
                                          const c2 = n2.children;
                                          const { patchFlag, shapeFlag } = n2;
                              Severity: Minor
                              Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                                Function buildDirectiveArgs has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function buildDirectiveArgs(dir, context) {
                                    const dirArgs = [];
                                    const runtime = directiveImportMap.get(dir);
                                    if (runtime) {
                                            // built-in directive with runtime
                                Severity: Minor
                                Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                                  Function 1c7e has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  /***/ (function(module, exports, __webpack_require__) {
                                  
                                  var wellKnownSymbol = __webpack_require__("b622");
                                  
                                  var ITERATOR = wellKnownSymbol('iterator');
                                  Severity: Minor
                                  Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

                                    Function e260 has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

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

                                      function includesParams(outer, inner) {
                                          for (let key in inner) {
                                              let innerValue = inner[key];
                                              let outerValue = outer[key];
                                              if (typeof innerValue === "string") {
                                      Severity: Minor
                                      Found in cherrydoor/static/js/vue-router.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 genNodeList has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                      function genNodeList(nodes, context, multilines = false, comma = true) {
                                          const { push, newline } = context;
                                          for (let i = 0; i < nodes.length; i++) {
                                                  const node = nodes[i];
                                                  if (isString(node)) {
                                      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