MeowUTF.js
Function MeowUTF
has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring. Open
Open
var MeowUTF = function() {
// main file
'use strict';
// UTF8_16
var MeowUTF8_16;
- Read upRead up
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
Open
var MeowUTF = function() {
// main file
'use strict';
// UTF8_16
var MeowUTF8_16;
Function MeowUTF8_16
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
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]";
Function Meow_ReverseUTF16
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Meow_ReverseUTF16 = function() {
var Meow_MinHigh = '\uD800';
var Meow_MaxHigh = '\uDBFF';
var Meow_MinLow = '\uDC00';
var Meow_MaxLow = '\uDFFF';
Function export
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;