Geek-Research-Lab/MeowJS

View on GitHub
MeowUTF.js

Summary

Maintainability
D
3 days
Test Coverage

Function MeowUTF has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
Open

var MeowUTF = function() {
// main file
'use strict';
// UTF8_16
var MeowUTF8_16;
Severity: Minor
Found in MeowUTF.js - About 1 day 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 MeowUTF has 142 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var MeowUTF = function() {
// main file
'use strict';
// UTF8_16
var MeowUTF8_16;
Severity: Major
Found in MeowUTF.js - About 5 hrs to fix

    Function MeowUTF8_16 has 105 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    MeowUTF.MeowUTF8_16 = function(Meow_Global) {
        var Meow_Power, Meow_Args, define;
        if(!Array.Meow_isArray) {
            Array.Meow_isArray = function(vvv) {
                return Object.prototype.toString.call(vvv) === "[Object Array]";
    Severity: Major
    Found in MeowUTF.js - About 4 hrs to fix

      Function Meow_ReverseUTF16 has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var Meow_ReverseUTF16 = function() {
          var Meow_MinHigh = '\uD800';
          var Meow_MaxHigh = '\uDBFF';
          var Meow_MinLow = '\uDC00';
          var Meow_MaxLow = '\uDFFF';
      Severity: Minor
      Found in MeowUTF.js - About 1 hr to fix

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

            Meow_ReverseUTF16.export = function(Meow_String) {
                var Meow_Out = new Array(Meow_String.length);
                var Meow_HasSub = false;
                var Meow_Mid = Meow_String.length >> 1;
                var m, n, e1, e2;
        Severity: Minor
        Found in MeowUTF.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status