Showing 236 of 328 total issues
Function parseModuleDeclaration
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseModuleDeclaration() {
var id, src, body;
lex(); // 'module'
Function createFunctionDeclaration
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
createFunctionDeclaration: function (id, params, defaults, body, rest, generator, expression,
returnType) {
Function createFunctionExpression
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
createFunctionExpression: function (id, params, defaults, body, rest, generator, expression,
returnType) {
Method verify!
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def verify!(verb, path, request_params,
extensions, response_status, response_params, successful=true)
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 (ch !== '0' && ch !== '1') {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (source[index] === '{') {
++index;
str += scanUnicodeCodePointEscape();
} else {
restore = index;
Avoid deeply nested control flow statements. Open
Open
for (str += '\\u'; restore < index; ++restore) {
str += source[restore];
}
Avoid deeply nested control flow statements. Open
Open
if (ch === '\r' && source[index] === '\n') {
++index;
}
Avoid deeply nested control flow statements. Open
Open
if (index >= length) {
throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
}
Avoid deeply nested control flow statements. Open
Open
if (ch === 42) {
ch = source.charCodeAt(index);
if (ch === 47) {
++index;
blockComment = false;
Avoid deeply nested control flow statements. Open
Open
if (tmp && tmp.type === Syntax.SpreadElement) {
if (!match(']')) {
throwError({}, Messages.ElementAfterSpreadElement);
}
} else if (!(match(']') || matchKeyword('for') || matchKeyword('if'))) {
Avoid deeply nested control flow statements. Open
Open
if (ch === '\r' && source[index + 1] === '\n') {
++index;
comment += '\r\n';
} else {
comment += ch;
Avoid deeply nested control flow statements. Open
Open
if (ch === 13 && source.charCodeAt(index + 1) === 10) {
++index;
}
Avoid deeply nested control flow statements. Open
Open
if (index >= length) {
throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
}
Avoid deeply nested control flow statements. Open
Open
if (expr.type !== Syntax.MemberExpression && expr.type !== Syntax.CallExpression && expr.type !== Syntax.NewExpression) {
throwError({}, Messages.InvalidLHSInAssignment);
}
Avoid deeply nested control flow statements. Open
Open
if (isOctalDigit(ch)) {
code = '01234567'.indexOf(ch);
// \0 is not octal escape sequence
if (code !== 0) {
Avoid deeply nested control flow statements. Open
Open
if (ch === 47) {
index += 2;
lineComment = true;
} else if (ch === 42) {
// Block comment starts with '/*' (char #47, char #42).
Avoid deeply nested control flow statements. Open
Open
if (isIdentifierStart(ch) || isDecimalDigit(ch)) {
throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
}
Avoid deeply nested control flow statements. Open
Open
if (!checkToken) {
return scanRegExp();
}