oplik0/cherrydoor

View on GitHub

Showing 556 of 650 total issues

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

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

function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
    const instance = currentRenderingInstance || currentInstance;
    if (instance) {
            const Component = instance.type;
            // explicit self name has highest priority
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 patch has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = false) => {
            // patching & not same type, unmount old tree
            if (n1 && !isSameVNodeType(n1, n2)) {
                    anchor = getNextHostNode(n1);
                    unmount(n1, parentComponent, parentSuspense, true);
Severity: Minor
Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

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

      patchedExec = function exec(str) {
        var re = this;
        var lastIndex, reCopy, match, i;
        var sticky = UNSUPPORTED_Y && re.sticky;
        var flags = regexpFlags.call(re);
    Severity: Minor
    Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

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

        function getCurrentScript () {
          var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
          // for chrome
          if (!descriptor && 'currentScript' in document && document.currentScript) {
            return document.currentScript
      Severity: Minor
      Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

        Function finishComponentSetup has 42 lines of code (exceeds 25 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

          Function traverseNode has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function traverseNode(node, context) {
              context.currentNode = node;
              // apply transform plugins
              const { nodeTransforms } = context;
              const exitFns = [];
          Severity: Minor
          Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

            Function toggleActive has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                toggleActive: function toggleActive() {
                  var _this11 = this;
            
                  if (this.disabled) {
                    return;
            Severity: Minor
            Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

              Function install has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      install(app) {
                          const router = this;
                          app.component("RouterLink", RouterLink);
                          app.component("RouterView", RouterView);
                          app.config.globalProperties.$router = router;
              Severity: Minor
              Found in cherrydoor/static/js/vue-router.js - About 1 hr to fix

                Function unmount has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
                            const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs } = vnode;
                            // unset ref
                            if (ref != null) {
                                    setRef(ref, null, parentSuspense, vnode, true);
                Severity: Minor
                Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                  Function injectProp has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function injectProp(node, prop, context) {
                      let propsWithInjection;
                      const props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
                      if (props == null || isString(props)) {
                              propsWithInjection = createObjectExpression([prop]);
                  Severity: Minor
                  Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                    Function cloneVNode has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function cloneVNode(vnode, extraProps, mergeRef = false) {
                        // This is intentionally NOT using spread or extend to avoid the runtime
                        // key enumeration cost.
                        const { props, ref, patchFlag, children } = vnode;
                        const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
                    Severity: Minor
                    Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                      Function e01a has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      /***/ (function(module, exports, __webpack_require__) {
                      
                      "use strict";
                      // `Symbol.prototype.description` getter
                      // https://tc39.github.io/ecma262/#sec-symbol.prototype.description
                      Severity: Minor
                      Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

                        Function fb6a has 40 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 stringifyQuery has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function stringifyQuery(query) {
                              let search = "";
                              for (let key in query) {
                                  const value = query[key];
                                  key = encodeQueryKey(key);
                          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 traverse has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function traverse(value, seen = new Set()) {
                              if (!isObject(value) ||
                                      seen.has(value) ||
                                      value["__v_skip" /* SKIP */]) {
                                      return 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 shouldSetAsProp has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function shouldSetAsProp(el, key, value, isSVG) {
                              if (isSVG) {
                                      // most keys must be set as attribute on svg elements to work
                                      // ...except innerHTML
                                      if (key === 'innerHTML') {
                          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