Geek-Research-Lab/MeowJS

View on GitHub
HiddenMeow.js

Summary

Maintainability
D
1 day
Test Coverage

Function HiddenMeow has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring.
Open

var HiddenMeow = function() {
  "use strict";
  var m, m2, m3, xxx;
  var Meow_String;
  var Meow_Pick;
Severity: Minor
Found in HiddenMeow.js - About 7 hrs 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 HiddenMeow has 103 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var HiddenMeow = function() {
  "use strict";
  var m, m2, m3, xxx;
  var Meow_String;
  var Meow_Pick;
Severity: Major
Found in HiddenMeow.js - About 4 hrs to fix

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

        HiddenMeow.Meow_Predict = function(x, a) {
          Meow_Power.Meow_Nodes = [];
          Meow_Power.Meow_Init = [];
          Meow_Power.Meow_Char = x;
          for (Meow_Object,
    Severity: Minor
    Found in HiddenMeow.js - About 1 hr to fix

      Function Meow_Generate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          HiddenMeow.prototype.Meow_Generate = function(Meow_Stop, Meow_Len, zz) {
            zz = zz || 0;
            HiddenMeow.Meow_Pick = function(a) {
              xxx = Math.Meow_Random();
              for (m = 0; m < a.length && xxx > 0; m++) {
      Severity: Minor
      Found in HiddenMeow.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status