oplik0/cherrydoor

View on GitHub

Showing 650 of 650 total issues

Function emit has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
Open

function emit(instance, event, ...rawArgs) {
    const props = instance.vnode.props || EMPTY_OBJ;
    {
            const { emitsOptions, propsOptions: [propsOptions] } = instance;
            if (emitsOptions) {
Severity: Minor
Found in cherrydoor/static/js/vue-dev.js - About 5 hrs 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 processIf has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
Open

function processIf(node, dir, context, processCodegen) {
    if (dir.name !== 'else' &&
            (!dir.exp || !dir.exp.content.trim())) {
            const loc = dir.exp ? dir.exp.loc : node.loc;
            context.onError(createCompilerError(27 /* X_V_IF_NO_EXPRESSION */, dir.loc));
Severity: Minor
Found in cherrydoor/static/js/vue-dev.js - About 5 hrs 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 setupRenderEffect has 127 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => {
            // create reactive effect for rendering
            instance.update = effect(function componentEffect() {
                    if (!instance.isMounted) {
                            let vnodeHook;
Severity: Major
Found in cherrydoor/static/js/vue-dev.js - About 5 hrs to fix

    Function patchKeyedChildren has 126 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
                let i = 0;
                const l2 = c2.length;
                let e1 = c1.length - 1; // prev ending index
                let e2 = l2 - 1; // next ending index
    Severity: Major
    Found in cherrydoor/static/js/vue-dev.js - About 5 hrs to fix

      Function parseAttribute has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
      Open

      function parseAttribute(context, nameSet) {
          // Name.
          const start = getCursor(context);
          const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
          const name = match[0];
      Severity: Minor
      Found in cherrydoor/static/js/vue-dev.js - About 4 hrs 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 shouldUpdateComponent has a Cognitive Complexity of 33 (exceeds 5 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 4 hrs 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 buildSlots has 122 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
          context.helper(WITH_CTX);
          const { children, loc } = node;
          const slotsProperties = [];
          const dynamicSlots = [];
      Severity: Major
      Found in cherrydoor/static/js/vue-dev.js - About 4 hrs to fix

        Function componentEffect has 122 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    instance.update = effect(function componentEffect() {
                            if (!instance.isMounted) {
                                    let vnodeHook;
                                    const { el, props } = initialVNode;
                                    const { bm, m, parent } = instance;
        Severity: Major
        Found in cherrydoor/static/js/vue-dev.js - About 4 hrs to fix

          Function defineAsyncComponent has 121 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function defineAsyncComponent(source) {
              if (isFunction(source)) {
                      source = { loader: source };
              }
              const { loader, loadingComponent, errorComponent, delay = 200, timeout, // undefined = never times out
          Severity: Major
          Found in cherrydoor/static/js/vue-dev.js - About 4 hrs to fix

            Function parseTag has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
            Open

            function parseTag(context, type, parent) {
                // Tag open.
                const start = getCursor(context);
                const match = /^<\/?([a-z][^\t\r\n\f />]*)/i.exec(context.source);
                const tag = match[1];
            Severity: Minor
            Found in cherrydoor/static/js/vue-dev.js - About 4 hrs 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 setRef has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
            Open

            const setRef = (rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) => {
                if (isArray(rawRef)) {
                        rawRef.forEach((r, i) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount));
                        return;
                }
            Severity: Minor
            Found in cherrydoor/static/js/vue-dev.js - About 4 hrs 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 scrollToPosition has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
            Open

            function scrollToPosition(position) {
                let scrollToOptions;
                if ("el" in position) {
                    let positionEl = position.el;
                    const isIdSelector =
            Severity: Minor
            Found in cherrydoor/static/js/vue-router.js - About 4 hrs 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 5319 has 111 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function resolveTransitionHooks has 110 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function resolveTransitionHooks(vnode, props, state, instance) {
                  const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
                  const key = String(vnode.key);
                  const leavingVNodesCache = getLeavingNodesForType(state, vnode);
                  const callHook = (hook, args) => {
              Severity: Major
              Found in cherrydoor/static/js/vue-dev.js - About 4 hrs to fix

                Function 1276 has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Function renderComponentRoot has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function renderComponentRoot(instance) {
                      const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;
                      let result;
                      const prev = setCurrentRenderingInstance(instance);
                      {
                  Severity: Major
                  Found in cherrydoor/static/js/vue-dev.js - About 4 hrs to fix

                    File auth.py has 340 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    """Authentication and authorization policies and helpers."""
                    
                    __author__ = "opliko"
                    __license__ = "MIT"
                    __version__ = "0.8.b0"
                    Severity: Minor
                    Found in cherrydoor/auth.py - About 4 hrs to fix

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

                      const transformModel$1 = (dir, node, context) => {
                          const baseResult = transformModel(dir, node, context);
                          // base transform has errors OR component v-model (only need props)
                          if (!baseResult.props.length || node.tagType === 1 /* COMPONENT */) {
                                  return baseResult;
                      Severity: Minor
                      Found in cherrydoor/static/js/vue-dev.js - About 4 hrs 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 hydrateNode has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {
                                  const isFragmentStart = isComment(node) && node.data === '[';
                                  const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart);
                                  const { type, ref, shapeFlag } = vnode;
                                  const domType = node.nodeType;
                      Severity: Major
                      Found in cherrydoor/static/js/vue-dev.js - About 4 hrs to fix

                        Function a1f0 has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        /***/ (function(module, exports, __webpack_require__) {
                        
                        "use strict";
                        
                        var $ = __webpack_require__("23e7");
                        Severity: Major
                        Found in cherrydoor/static/components/VueTimepicker.js - About 3 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language