oplik0/cherrydoor

View on GitHub

Showing 650 of 650 total issues

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 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 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 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 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 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 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 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 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

        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 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 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

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

              function add(handler) {
                  handlers.push(handler);
                  return () => {
                      const i = handlers.indexOf(handler);
                      if (i > -1) handlers.splice(i, 1);
          Severity: Major
          Found in cherrydoor/static/js/vue-router.js and 1 other location - About 1 hr to fix
          cherrydoor/static/js/vue-router.js on lines 732..738

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 60.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                  listen(callback) {
                      listeners.push(callback);
                      return () => {
                          const index = listeners.indexOf(callback);
                          if (index > -1) listeners.splice(index, 1);
          Severity: Major
          Found in cherrydoor/static/js/vue-router.js and 1 other location - About 1 hr to fix
          cherrydoor/static/js/vue-router.js on lines 1886..1892

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 60.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          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
                    Severity
                    Category
                    Status
                    Source
                    Language