Showing 200 of 405 total issues
Avoid deeply nested control flow statements. Open
Open
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
Avoid deeply nested control flow statements. Open
Open
if (0xDC00 <= codeTrail && codeTrail < 0xE000)
writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);
else
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
Avoid deeply nested control flow statements. Open
Open
if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
codePoint = tempCodePoint
}
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,
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
}
Avoid deeply nested control flow statements. Open
Open
else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used)
var len = 0xFFF - code + 2;
var seq = [];
for (var m = 0; m < len; m++)
seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq.
Avoid deeply nested control flow statements. Open
Open
if (accBytes === 2 && acc < 0x80 && acc > 0)
res += this.defaultCharUnicode;
else if (accBytes === 3 && acc < 0x800)
res += this.defaultCharUnicode;
else
Avoid deeply nested control flow statements. Open
Open
if(separated.length>1) {
brokenLine.cols += separated.length-1;
}
Avoid deeply nested control flow statements. Open
Open
if(lines[ln].substr(0, info.opts.separator.length) !== info.opts.separator) {
brokenLine.lines.push('\n');
}
Avoid deeply nested control flow statements. Open
Open
if(brokenLine.lines.length===1) {
errors.push(txtToSql.errString(info, 'errBadRow',[ln, firstLine.length, numColumns]));
} else {
errors.push(txtToSql.errString(info, 'errBadRowMulti', [parseInt(brokenLine.num+linesJoined+1,10),
parseInt(ln+linesJoined,10),
Avoid deeply nested control flow statements. Open
Open
if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
codePoint = tempCodePoint
}
Consider simplifying this complex logical expression. Open
Open
if(match){
var integerParts={};
integerParts.year = parseInt(match[2],10)
integerParts.month = parseInt(match[4],10)
integerParts.day = parseInt(match[7],10)
Consider simplifying this complex logical expression. Open
Open
if(original===null ||
!bestGlobals.isPlainObject(original) &&
!(original instanceof Error) &&
(!opts.mostlyPlain || typeof original != "object" || !bestGlobals.isPlainObject(changes))
// && !bestGlobals.changing
Function writeFloat
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function writeFloat (buf, value, offset, littleEndian, noAssert) {
Function writeDouble
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function writeDouble (buf, value, offset, littleEndian, noAssert) {
Function writeFloat
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function writeFloat (buf, value, offset, littleEndian, noAssert) {
Function arrayIndexOf
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
Function arrayIndexOf
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
Function setCol
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function setCol(info, prop, index, defVal, stateArray) {
Function read
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.read = function (buffer, offset, isLE, mLen, nBytes) {