oplik0/cherrydoor

View on GitHub

Showing 650 of 650 total issues

Function createGetter has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createGetter(isReadonly = false, shallow = false) {
    return function get(target, key, receiver) {
            if (key === "__v_isReactive" /* IS_REACTIVE */) {
                    return !isReadonly;
            }
Severity: Minor
Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

    Function compileToFunction has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function compileToFunction(template, options) {
        if (!isString(template)) {
                if (template.nodeType) {
                        template = template.innerHTML;
                }
    Severity: Minor
    Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

      Function header has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  header(obj) {
                          // TODO also format ComponentPublicInstance & ctx.slots/attrs in setup
                          if (!isObject(obj)) {
                                  return null;
                          }
      Severity: Minor
      Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

        Function unmountComponent has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            const unmountComponent = (instance, parentSuspense, doRemove) => {
                    if (instance.type.__hmrId) {
                            unregisterHMR(instance);
                    }
                    const { bum, effects, update, subTree, um } = instance;
        Severity: Minor
        Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

          Function 23e7 has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          /***/ (function(module, exports, __webpack_require__) {
          
          var global = __webpack_require__("da84");
          var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
          var createNonEnumerableProperty = __webpack_require__("9112");
          Severity: Minor
          Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

            Function mergeOptions has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function mergeOptions(to, from, strats, asMixin = false) {
                const { mixins, extends: extendsOptions } = from;
                if (extendsOptions) {
                        mergeOptions(to, extendsOptions, strats, true);
                }
            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 getTransitionRawChildren has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function getTransitionRawChildren(children, keepComment = false) {
                let ret = [];
                let keyedFragmentCount = 0;
                for (let i = 0; i < children.length; i++) {
                        const child = children[i];
            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 registerKeepAliveHook has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function registerKeepAliveHook(hook, type, target = currentInstance) {
                // cache the deactivate branch check wrapper for injected hooks so the same
                // hook can be properly deduped by the scheduler. "__wdc" stands for "with
                // deactivation check".
                const wrappedHook = hook.__wdc ||
            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 useLink has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function useLink(props) {
                const router = inject(routerKey);
                const currentRoute = inject(routeLocationKey);
                const route = computed(() => router.resolve(unref(props.to)));
                const activeRecordIndex = computed(() => {
            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 h has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function h(type, propsOrChildren, children) {
                const l = arguments.length;
                if (l === 2) {
                        if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
                                // single vnode without props
            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 parseElement has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function parseElement(context, ancestors) {
                // Start tag.
                const wasInPre = context.inPre;
                const wasInVPre = context.inVPre;
                const parent = last(ancestors);
            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 createChildrenCodegenNode has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function createChildrenCodegenNode(branch, keyIndex, context) {
                const { helper, removeHelper } = context;
                const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */));
                const { children } = branch;
                const firstChild = children[0];
            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 transformBind has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            const transformBind = (dir, _node, context) => {
                const { exp, modifiers, loc } = dir;
                const arg = dir.arg;
                if (arg.type !== 4 /* SIMPLE_EXPRESSION */) {
                        arg.children.unshift(`(`);
            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 patchProp has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
                switch (key) {
                        // special
                        case 'class':
                                patchClass(el, nextValue, isSVG);
            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 buildDirectiveArgs has a Cognitive Complexity of 12 (exceeds 5 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

            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 validateProp has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function validateProp(name, value, prop, isAbsent) {
                const { type, required, validator } = prop;
                // required!
                if (required && isAbsent) {
                        warn('Missing required prop: "' + name + '"');
            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 setFullProps has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function setFullProps(instance, rawProps, props, attrs) {
                const [options, needCastKeys] = instance.propsOptions;
                let hasAttrsChanged = false;
                let rawCastValues;
                if (rawProps) {
            Severity: Minor
            Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

              Function get has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  return function get(target, key, receiver) {
                          if (key === "__v_isReactive" /* IS_REACTIVE */) {
                                  return !isReadonly;
                          }
                          else if (key === "__v_isReadonly" /* IS_READONLY */) {
              Severity: Minor
              Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                Function transformOn$1 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                const transformOn$1 = (dir, node, context) => {
                    return transformOn(dir, node, context, baseResult => {
                            const { modifiers } = dir;
                            if (!modifiers.length)
                                    return baseResult;
                Severity: Minor
                Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                  Function 4df4 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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