Showing 200 of 405 total issues
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
if(separated.length>1) {
brokenLine.cols += separated.length-1;
}
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
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(lines[ln].substr(0, info.opts.separator.length) !== info.opts.separator) {
brokenLine.lines.push('\n');
}
Function write
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
Avoid deeply nested control flow statements. Open
Open
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
Function write
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
Avoid deeply nested control flow statements. Open
Open
if (tempCodePoint > 0x7F) {
codePoint = tempCodePoint
}
Avoid deeply nested control flow statements. Open
Open
if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
codePoint = tempCodePoint
}
Function ymdHms
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
bestGlobals.datetime.ymdHms = function ymdHms(y, m, d, hh, mm, ss) {
Avoid deeply nested control flow statements. Open
Open
if ((units -= 3) < 0) break
Avoid deeply nested control flow statements. Open
Open
if(window[camelName]){
/* jshint -W093 */
return window.require.definedModules[name] = window[camelName];
/* jshint +W093 */
}else{
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,
Function checkInt
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function checkInt (buf, value, offset, ext, max, min) {
Function checkIEEE754
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function checkIEEE754 (buf, value, offset, ext, max, min) {
Function checkInt
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function checkInt (buf, value, offset, ext, max, min) {
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(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 (idx != -1) {
var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);
newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;
newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;
newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;