beevelop/corci-monitor

View on GitHub

Showing 256 of 374 total issues

Function 21 has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

},{"./transport":21,"./transports":22,"component-emitter":17,"debug":9,"engine.io-parser":29,"indexof":44,"parsejson":38,"parseqs":39,"parseuri":40}],21:[function(require,module,exports){
/**
 * Module dependencies.
 */

Severity: Minor
Found in www/js/bundle.js - About 35 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

Avoid too many return statements within this function.
Open

    return false;
Severity: Major
Found in www/js/bundle.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return { type: packetslist[type], data: rest };
    Severity: Major
    Found in www/js/bundle.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                      return codePoint;
      Severity: Major
      Found in www/js/bundle.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return data;
        Severity: Major
        Found in www/js/bundle.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return !!node;
          Severity: Major
          Found in www/js/bundle.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return { type: packetslist[type] };
            Severity: Major
            Found in www/js/bundle.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      if (false === ret) return;
              Severity: Major
              Found in www/js/bundle.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                return null;
                Severity: Major
                Found in www/js/bundle.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                            return callback(err, 0, 1);
                  Severity: Major
                  Found in www/js/bundle.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                              return result;
                    Severity: Major
                    Found in www/js/bundle.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                      return false;
                      Severity: Major
                      Found in www/js/bundle.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return "$";
                        Severity: Major
                        Found in www/js/bundle.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return callback(err, 0, 1);
                          Severity: Major
                          Found in www/js/bundle.js - About 30 mins to fix

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

                            },{"./keys":30,"after":31,"arraybuffer.slice":32,"base64-arraybuffer":33,"blob":34,"utf8":35}],30:[function(require,module,exports){
                            
                            /**
                             * Gets the keys for an object.
                             *
                            Severity: Minor
                            Found in www/js/bundle.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 41 has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                            Open

                            },{}],41:[function(require,module,exports){
                            
                            /**
                             * Module dependencies.
                             */
                            Severity: Minor
                            Found in www/js/bundle.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