Showing 403 of 403 total issues
Avoid deeply nested control flow statements. Open
Open
if (category['@'] && (_categoryValue = utils.safeTrim(utils.get(category['@'], 'term')))) {
meta.categories.push(_categoryValue);
}
- Create a ticketCreate a ticket
Function doWrite
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function doWrite(stream, state, len, chunk, encoding, cb) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
} else if ('category' == name && utils.get(category) && 'rss' == type) {
item.categories.push(utils.get(category).trim());
} else if ('dc:subject' == name && utils.get(category)) {
_categories = utils.get(category).split(' ').map(function (cat){ return cat.trim(); });
if (_categories.length) item.categories = item.categories.concat(_categories);
- Create a ticketCreate a ticket
Function checkInt
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function checkInt (buf, value, offset, ext, max, min) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
} else if (Object.keys(link['@']).length === 0) { // RSS
meta.link = utils.get(link);
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
else if ('category' == name && 'rss' == type){
if ((_categoryValue = utils.safeTrim(utils.get(category)))) {
meta.categories.push(_categoryValue);
}
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (utils.get(link['@'], 'rel')) {
if (link['@']['rel'] == 'canonical') item.origlink = link['@']['href'];
if (link['@']['rel'] == 'alternate' && (!link['@']['type'] || link['@']['type'] == 'text/html') && !item.link) item.link = link['@']['href'];
if (link['@']['rel'] == 'self' && (!link['@']['type'] || link['@']['type'] == 'text/html') && !item.link) item.link = link['@']['href'];
if (link['@']['rel'] == 'replies') item.comments = link['@']['href'];
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ((_category = utils.safeTrim(utils.get(el['@'], 'term')))) {
meta.categories.push(_category);
}
- 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 (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 (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 (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 ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
- 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
if (tempCodePoint > 0x7F) {
codePoint = tempCodePoint
}
- 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(!data.address.length){
data.address = [address.trim()];
return " ";
}else{
return address;
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (not(whitespace, c)) strictFail(parser,
"Invalid tagname in closing tag")
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (!a.hasOwnProperty(key)) a[key] = b[key];
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (!newpart.match(hostnamePartPattern)) {
var validParts = hostparts.slice(0, i);
var notHost = hostparts.slice(i + 1);
var bit = part.match(hostnamePartStart);
if (bit) {
- Create a ticketCreate a ticket