Showing 20 of 55 total issues
File example.js
has 711 lines of code (exceeds 250 allowed). Consider refactoring. Open
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];
Function printColoured
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
,printColoured: function(x,y,text,foreground,background) {
var i = 0;
var charCount = 0;
var originalForeground = foreground;
var originalBackground = background;
Function __string_rec
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
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";
Avoid deeply nested control flow statements. Open
Open
if(i1 != 2) str2 += "," + js_Boot.__string_rec(o[i1],s); else str2 += js_Boot.__string_rec(o[i1],s);
Avoid deeply nested control flow statements. Open
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";
Function vellum_Font
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var vellum_Font = function(family,size,charWidth,lineHeight,x,y) {
Avoid deeply nested control flow statements. Open
Open
if(fore) col = originalForeground; else col = originalBackground;
Avoid deeply nested control flow statements. Open
Open
switch(_g1) {
case "k":
col = "#000";
break;
case "w":
Function vellum_CanvasTerminal
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var vellum_CanvasTerminal = function(width,height,font,canvas,handleInput) {
Function vellum_Window
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var vellum_Window = function(x,y,z,width,height) {
Function printColoured
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
,printColoured: function(x,y,text,foreground,background) {
Function BorderedWindow
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var BorderedWindow = function(x,y,z,width,height) {
Function vellum_KeyBinding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var vellum_KeyBinding = function(keyCode,type,shift,alt,callback) {
Function writeCharCode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
,writeCharCode: function(x,y,code,foreground,background) {
Function print
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
,print: function(x,y,text,foreground,background) {
Function writeChar
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
,writeChar: function(x,y,$char,foreground,background) {
Avoid too many return
statements within this function. Open
Open
return "???";
Avoid too many return
statements within this function. Open
Open
if(s2 != "[object Object]") return s2;
Avoid too many return
statements within this function. Open
Open
return str1;
Avoid too many return
statements within this function. Open
Open
return str;