Showing 403 of 403 total issues
Function write
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (category['@'] && utils.get(category['@'], 'term')) item.categories.push(utils.get(category['@'], 'term'));
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (Helper.is_template(key)) {
fun = TRANSFORM.tokenize(key);
if (fun) {
if (fun.name === '#include') {
// this was handled above (before the for loop) so just ignore
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (fun.expression) {
// if #include has arguments, evaluate it before attaching
result = TRANSFORM.fillout(template[include_keys[0]], '{{' + fun.expression + '}}', true);
} else {
// no argument, simply attach the child
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (utils.get(el['@'], 'rel')) {
if (el['@']['rel'] == 'alternate') {
if (!meta.link) meta.link = el['@']['href'];
}
else if (el['@']['rel'] == 'self') {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
} else if (Object.keys(el['@']).length === 0) { // RSS
if (!item.link) item.link = utils.get(el);
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (item) {
// only push when the result is not null
// null could mean #if clauses where nothing matched => In this case instead of rendering 'null', should just skip it completely
// Todo : Distinguish between #if arrays and ordinary arrays, and return null for ordinary arrays
result.push(item);
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (full_re.test(template)) {
return evaluated;
} else {
return template.replace(variable, evaluated);
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (utils.get(el['@'], 'term')) item.categories.push(utils.get(el['@'], 'term'));
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
} else if (Object.keys(link['@']).length === 0) { // RSS
if (!item.link) item.link = utils.get(link);
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
} else if ('category' == name && utils.get(el) && 'rss' == type) {
item.categories.push(utils.get(el).trim());
} else if ('dc:subject' == name && utils.get(el)) {
_categories = utils.get(el).split(' ').map(function (cat){ return cat.trim(); });
if (_categories.length) item.categories = item.categories.concat(_categories);
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (c && parser.trackPosition) {
parser.position ++
if (c === "\n") {
parser.line ++
parser.column = 0
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (not(whitespace, c)) strictFail(
parser, "Invalid character in tag name")
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (parser.script) {
parser.script += "</" + c
parser.state = S.SCRIPT
} else {
strictFail(parser, "Invalid tagname in closing tag.")
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
codePoint = tempCodePoint
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
for (var j = 0, k = part.length; j < k; j++) {
if (part.charCodeAt(j) > 127) {
// we replace non-ASCII char with a temporary placeholder
// we need this to make sure size of hostname is not
// broken by replacing non-ASCII by nothing
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
} else if (i + 1 === length) {
// unpaired lead
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
continue
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if(data.address.length){
break;
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (tempCodePoint > 0x7F) {
codePoint = tempCodePoint
}
- Create a ticketCreate a ticket