remixml.master.js
Function remixml2js
has 497 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
function /** string */ remixml2js(/** string */ rxmls,/** number= */ flags)
{ // H: Current element to append in
// W: Temporary parent element
// I: Most recent truth value
// J: Parent element to append the current element to when finished
File remixml.master.js
has 952 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
/** @license
** Remixml v6: XML/HTML-like macro language compiler
** Copyright (c) 2018-2022 by Stephen R. van den Berg <srb@cuci.nl>
** License: ISC OR GPL-3.0
** Sponsored by: Cubic Circle, The Netherlands
Avoid deeply nested control flow statements. Invalid
Invalid
{ if (rm[1])
getexclm(/** @type{!Array} */(rm), 1);
else if (rm[2])
{ rm[0] = "<";
getexclm(/** @type{!Array} */(rm), 2);
Avoid deeply nested control flow statements. Wontfix
Wontfix
switch (tag)
{ case "noparse":
if (!noparse++)
continue;
break;
Avoid deeply nested control flow statements. Open
Open
skipdef: do
{
switch (shouldtag)
{ case "noparse":
if(!--noparse)
Avoid deeply nested control flow statements. Invalid
Invalid
if (ASSERT && closelp)
continue;
Avoid deeply nested control flow statements. Invalid
Invalid
{ if (val[""])
val = val.join("");
Avoid deeply nested control flow statements. Open
Open
if (!comment)
{ delete gotparms[""];
obj += "W=H;";
if (!noparse)
{ switch (tag)
Avoid deeply nested control flow statements. Invalid
Invalid
if (!close)
{ let /** !RegExp|number */ rxend
= tag === "script" ? scriptend :
tag === "style" ? styleend : 0;
if (rxend)
Avoid deeply nested control flow statements. Invalid
Invalid
if (!(vname >= 0 || args[vname]))
rest[vname] = this[vname];
Avoid deeply nested control flow statements. Invalid
Invalid
if (!comment)
{ obj += "try{" + varinsert(varent(/** @type{!Array} */(rm)));
simpleset = 0;
}
Avoid deeply nested control flow statements. Invalid
Invalid
if (gotparms["-"])
{ delete gotparms["-"];
tagctx[TS_FLAGS] = TRIMWHITE;
}
Avoid deeply nested control flow statements. Invalid
Invalid
if ((RUNTIMEDEBUG || ASSERT) && tag !== shouldtag)
{ logcontext(tag,
(shouldtag ? "Expected </" + shouldtag + "> got </"
: missingg) + tag + ">");
if (ASSERT)
Avoid deeply nested control flow statements. Invalid
Invalid
{ if (rm)
lasttoken = params.lastIndex;
Avoid deeply nested control flow statements. Invalid
Invalid
if (narg !== val)
parent += '="'
+ (val.replace
? val.replace(ampquotrx, "&dquot;") : val) + '"';
Avoid deeply nested control flow statements. Invalid
Invalid
if (!comment)
{ obj += ";";
tagctx[TS_FLAGS] |= USERTAG;
}
Avoid deeply nested control flow statements. Invalid
Invalid
if (ASSERT)
{ rxmls += "</" + shouldtag + ">"; // Fix it and continue
continue;
}
Consider simplifying this complex logical expression. Open
Open
if (!noparse)
{ switch (tag)
{ case "set":
{ obj += letHprefix;
let vname = getvarparm();
Function settag
has 5 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
function /** void */ settag(/** function(!Object):!Array */ tpl,
/** !Object */ $,/** string */ name,/** string= */ scope,
/** string= */ args)