oplik0/cherrydoor

View on GitHub

Showing 556 of 650 total issues

Avoid too many return statements within this function.
Open

          return !this.has[this.lowerCasedApm(value)];
Severity: Major
Found in cherrydoor/static/components/VueTimepicker.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return uid.hex()
    Severity: Major
    Found in cherrydoor/interface/serial.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return false;
      Severity: Major
      Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                                            return 0 /* NOT_CONSTANT */;
        Severity: Major
        Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                    return i < 10 ? "0".concat(i) : String(i);
          Severity: Major
          Found in cherrydoor/static/components/VueTimepicker.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                                                        return 0 /* NOT_CONSTANT */;
            Severity: Major
            Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return siblingsInCol[selfIndex + 1];
              Severity: Major
              Found in cherrydoor/static/components/VueTimepicker.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return key in el;
                Severity: Major
                Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                              return 0 /* NOT_CONSTANT */;
                  Severity: Major
                  Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                        return returnType;
                    Severity: Major
                    Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return A;
                      Severity: Major
                      Found in cherrydoor/static/components/VueTimepicker.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return true;
                        Severity: Major
                        Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                                                                      return 0 /* NOT_CONSTANT */;
                          Severity: Major
                          Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                                        return returnType;
                            Severity: Major
                            Found in cherrydoor/static/js/vue-dev.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                        return scripts[i];
                              Severity: Major
                              Found in cherrydoor/static/components/VueTimepicker.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            if (A.length === lim) return A;
                                Severity: Major
                                Found in cherrydoor/static/components/VueTimepicker.js - About 30 mins to fix

                                  Function assertType has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  function assertType(value, type) {
                                      let valid;
                                      const expectedType = getType(type);
                                      if (isSimpleType(expectedType)) {
                                              const t = typeof value;
                                  Severity: Minor
                                  Found in cherrydoor/static/js/vue-dev.js - About 25 mins 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 updated has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      updated(el, { value, oldValue }, { transition }) {
                                              if (!value === !oldValue)
                                                      return;
                                              if (transition) {
                                                      if (value) {
                                  Severity: Minor
                                  Found in cherrydoor/static/js/vue-dev.js - About 25 mins 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 normalizeObjectSlots has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  const normalizeObjectSlots = (rawSlots, slots, instance) => {
                                      const ctx = rawSlots._ctx;
                                      for (const key in rawSlots) {
                                              if (isInternalKey(key))
                                                      continue;
                                  Severity: Minor
                                  Found in cherrydoor/static/js/vue-dev.js - About 25 mins 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 setup has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      setup(props, { slots }) {
                                              const instance = getCurrentInstance();
                                              // KeepAlive communicates with the instantiated renderer via the
                                              // ctx where the renderer passes in its internals,
                                              // and the KeepAlive instance exposes activate/deactivate implementations.
                                  Severity: Minor
                                  Found in cherrydoor/static/js/vue-dev.js - About 25 mins 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