htdocs/assets/js/queryparser.js
Function _parse
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
QueryParser.prototype._parse = function(tokens) {
var ret = {};
var stk = 0;
var node = ret;
var node = {};
Function tokenize
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
QueryParser.prototype.tokenize = function(str) {
if(!str) {
return [];
}
if(str.length > 1024) {
Avoid deeply nested control flow statements. Open
Open
if(vtok.length === 0) {
throw new ParseException('Empty group: "' + ktok + '"');
}
Avoid deeply nested control flow statements. Open
Open
if(!(k in final_ret)) {
final_ret[k] = [];
}