Showing 198 of 403 total issues
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
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 (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
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
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
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 > 0xFFFF && tempCodePoint < 0x110000) {
codePoint = tempCodePoint
}
- 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 ('string' === typeof level[el][name]) {
level[el][name] = URL.resolve(baseurl, level[el][name]);
}
else if ('#' in level[el][name]) {
level[el][name]['#'] = URL.resolve(baseurl, level[el][name]['#']);
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (q < t) {
break;
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ((units -= 3) < 0) break
- 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
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
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
} else if (codePoint < 0x110000) {
if ((units -= 4) < 0) break
bytes.push(
codePoint >> 0x12 | 0xF0,
codePoint >> 0xC & 0x3F | 0x80,
- 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 (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
codePoint = tempCodePoint
}
- 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
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
} else if (i + 1 === length) {
// unpaired lead
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
continue
}
- Create a ticketCreate a ticket