FuzzyWuzzie/vellum

View on GitHub

Showing 20 of 55 total issues

File example.js has 711 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function (console) { "use strict";
var $estr = function() { return js_Boot.__string_rec(this,''); };
function $extend(from, fields) {
    function Inherit() {} Inherit.prototype = from; var proto = new Inherit();
    for (var name in fields) proto[name] = fields[name];
Severity: Major
Found in example/output/example.js - About 1 day to fix

    Function printColoured has 148 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        ,printColoured: function(x,y,text,foreground,background) {
            var i = 0;
            var charCount = 0;
            var originalForeground = foreground;
            var originalBackground = background;
    Severity: Major
    Found in example/output/example.js - About 5 hrs to fix

      Function __string_rec has 66 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      js_Boot.__string_rec = function(o,s) {
          if(o == null) return "null";
          if(s.length >= 5) return "<...>";
          var t = typeof(o);
          if(t == "function" && (o.__name__ || o.__ename__)) t = "object";
      Severity: Major
      Found in example/output/example.js - About 2 hrs to fix

        Avoid deeply nested control flow statements.
        Open

                            if(i1 != 2) str2 += "," + js_Boot.__string_rec(o[i1],s); else str2 += js_Boot.__string_rec(o[i1],s);
        Severity: Major
        Found in example/output/example.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                      } else if(text.charAt(i) == "_") if(fore) col = originalForeground; else col = originalBackground; else {
                          var _g2 = text.charAt(i);
                          switch(_g2) {
                          case "k":
                              col = "#000";
          Severity: Major
          Found in example/output/example.js - About 45 mins to fix

            Function vellum_Font has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            var vellum_Font = function(family,size,charWidth,lineHeight,x,y) {
            Severity: Minor
            Found in example/output/example.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if(fore) col = originalForeground; else col = originalBackground;
              Severity: Major
              Found in example/output/example.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                switch(_g1) {
                                case "k":
                                    col = "#000";
                                    break;
                                case "w":
                Severity: Major
                Found in example/output/example.js - About 45 mins to fix

                  Function vellum_CanvasTerminal has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  var vellum_CanvasTerminal = function(width,height,font,canvas,handleInput) {
                  Severity: Minor
                  Found in example/output/example.js - About 35 mins to fix

                    Function vellum_Window has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    var vellum_Window = function(x,y,z,width,height) {
                    Severity: Minor
                    Found in example/output/example.js - About 35 mins to fix

                      Function printColoured has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          ,printColoured: function(x,y,text,foreground,background) {
                      Severity: Minor
                      Found in example/output/example.js - About 35 mins to fix

                        Function BorderedWindow has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        var BorderedWindow = function(x,y,z,width,height) {
                        Severity: Minor
                        Found in example/output/example.js - About 35 mins to fix

                          Function vellum_KeyBinding has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          var vellum_KeyBinding = function(keyCode,type,shift,alt,callback) {
                          Severity: Minor
                          Found in example/output/example.js - About 35 mins to fix

                            Function writeCharCode has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                ,writeCharCode: function(x,y,code,foreground,background) {
                            Severity: Minor
                            Found in example/output/example.js - About 35 mins to fix

                              Function print has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  ,print: function(x,y,text,foreground,background) {
                              Severity: Minor
                              Found in example/output/example.js - About 35 mins to fix

                                Function writeChar has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    ,writeChar: function(x,y,$char,foreground,background) {
                                Severity: Minor
                                Found in example/output/example.js - About 35 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return "???";
                                  Severity: Major
                                  Found in example/output/example.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                if(s2 != "[object Object]") return s2;
                                    Severity: Major
                                    Found in example/output/example.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return str1;
                                      Severity: Major
                                      Found in example/output/example.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return str;
                                        Severity: Major
                                        Found in example/output/example.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language