oplik0/cherrydoor

View on GitHub

Showing 556 of 650 total issues

Function process has 10 arguments (exceeds 4 allowed). Consider refactoring.
Open

    process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals) {
Severity: Major
Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

    Function createVNodeCall has 10 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, loc = locStub) {
    Severity: Major
    Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

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

      function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison
      isSSR = false) {
          const props = {};
          const attrs = {};
          def(attrs, InternalObjectKey, 1);
      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 isRouteMatching has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
      Open

      function isRouteMatching(route, filter) {
          const found = String(route.re).match(EXTRACT_REGEXP_RE);
          route.__vd_match = false;
          if (!found || found.length < 3) {
              return false;
      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 extractChangingRecords has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
      Open

      function extractChangingRecords(to, from) {
          const leavingRecords = [];
          const updatingRecords = [];
          const enteringRecords = [];
          const len = Math.max(from.matched.length, to.matched.length);
      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 defineAsyncComponent has a Cognitive Complexity of 11 (exceeds 5 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: 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 parseComment has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
      Open

      function parseComment(context) {
          const start = getCursor(context);
          let content;
          // Regular comment.
          const match = /--(\!)?>/.exec(context.source);
      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 process has 10 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, 
          // platform-specific impl passed from renderer
          rendererInternals) {
      Severity: Major
      Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

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

        function resolveTransitionProps(rawProps) {
            const baseProps = {};
            for (const key in rawProps) {
                    if (!(key in DOMTransitionPropsValidators)) {
                            baseProps[key] = rawProps[key];
        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 beforeUpdate has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
        Open

            beforeUpdate(el, { value, modifiers: { trim, number } }, vnode) {
                    el._assign = getModelAssigner(vnode);
                    // avoid clearing unresolved text. #2302
                    if (el.composing)
                            return;
        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 injectHook has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function injectHook(type, hook, target = currentInstance, prepend = false) {
            if (target) {
                    const hooks = target[type] || (target[type] = []);
                    // cache the error handling wrapper for injected hooks so the same hook
                    // can be properly deduped by the scheduler. "__weh" stands for "with error
        Severity: Minor
        Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

          Function reload has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function reload(id, newComp) {
              const record = map.get(id);
              if (!record)
                      return;
              // Array.from creates a snapshot which avoids the set being mutated during
          Severity: Minor
          Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

            Function createWebHistory has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function createWebHistory(base) {
                base = normalizeBase(base);
                const historyNavigation = useHistoryStateNavigation(base);
                const historyListeners = useHistoryListeners(
                    base,
            Severity: Minor
            Found in cherrydoor/static/js/vue-router.js - About 1 hr to fix

              Function formatInstance has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function formatInstance(instance) {
                          const blocks = [];
                          if (instance.type.props && instance.props) {
                                  blocks.push(createInstanceBlock('props', toRaw(instance.props)));
                          }
              Severity: Minor
              Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                Function 6eeb has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

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

                    Function whenTransitionEnds has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
                        const id = (el._endId = ++endId);
                        const resolveIfNotStale = () => {
                                if (id === el._endId) {
                                        resolve();
                    Severity: Minor
                    Found in cherrydoor/static/js/vue-dev.js - About 1 hr to fix

                      Function submitUsers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              submitUsers() {
                                  const original_users = this.$data.original_users;
                                  function difference(a, b) {
                                      a = new Set(a);
                                      b = new Set(b);
                      Severity: Minor
                      Found in cherrydoor/static/components/ManageUsers.js - About 1 hr to fix

                        Function createMethod has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var createMethod = function (TYPE) {
                          var IS_MAP = TYPE == 1;
                          var IS_FILTER = TYPE == 2;
                          var IS_SOME = TYPE == 3;
                          var IS_EVERY = TYPE == 4;
                        Severity: Minor
                        Found in cherrydoor/static/components/VueTimepicker.js - About 1 hr to fix

                          Function setup_app has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          def setup_app(loop=asyncio.get_event_loop(), config=load_config()[0]):
                              """Create the app and initiate all services (database, security, etc).
                          
                              Parameters
                              ----------
                          Severity: Minor
                          Found in cherrydoor/app.py - About 1 hr to fix
                            Severity
                            Category
                            Status
                            Source
                            Language