Geek-Research-Lab/MeowJS

View on GitHub
MeowDOM.js

Summary

Maintainability
D
1 day
Test Coverage

Function MeowDOM has 198 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var MeowDOM = function() {
    'use strict';
    var Meow_Buffer;
    var meowProcess;
    var document;
Severity: Major
Found in MeowDOM.js - About 7 hrs to fix

    Function exports has 133 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var elements = module.exports = function() {
            elements.Meow_DOMRender = function(xy, el, MeowStream) {
                var MeowRow = 0;
                xy(el).children().each(function(m, v) {
                    MeowStream.col(3);
    Severity: Major
    Found in MeowDOM.js - About 5 hrs to fix

      Function Meow_DOMRender has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          MeowDOM.prototype.Meow_DOMRender = function(html, MeowStream, box) {
              var MeowCharm = module.exports = function(xx) {
                  function meowBytes(x) {
                      if(typeof x === 'string') {
                          return x.split('').map(xOrd);
      Severity: Minor
      Found in MeowDOM.js - About 1 hr to fix

        Function MeowDOM has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

        var MeowDOM = function() {
            'use strict';
            var Meow_Buffer;
            var meowProcess;
            var document;
        Severity: Minor
        Found in MeowDOM.js - About 1 hr 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

        There are no issues that match your filters.

        Category
        Status