Showing 413 of 413 total issues
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (expr.type !== Syntax.MemberExpression && expr.type !== Syntax.CallExpression && expr.type !== Syntax.NewExpression) { throwError({}, Messages.InvalidLHSInAssignment); }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
} else if (extra.tokens[extra.openCurlyToken - 4] && extra.tokens[extra.openCurlyToken - 4].type === 'Keyword') { // Named function. checkToken = extra.tokens[extra.openCurlyToken - 5]; if (!checkToken) {
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
visitFunctionBodyForStructuredParameter.test = function(node, path, state) { return node.type === Syntax.BlockStatement && isFunctionNode(path[0]);};
- Read upRead up
Avoid too many return
statements within this function. Open
return scanPunctuator();
Avoid too many return
statements within this function. Open
return markerApply(marker, delegate.createStringLiteralTypeAnnotation( token ));
Avoid too many return
statements within this function. Open
return cmp;
Avoid too many return
statements within this function. Open
return strcmp(mappingA.name, mappingB.name);
Avoid too many return
statements within this function. Open
return scanPunctuator();
Avoid too many return
statements within this function. Open
return advanceSlash();
Avoid too many return
statements within this function. Open
return loaderCache[id];
Avoid too many return
statements within this function. Open
return { type: Token.Punctuator, value: ch1 + ch2, lineNumber: lineNumber, lineStart: lineStart,
Avoid too many return
statements within this function. Open
return scanRegExp();
Avoid too many return
statements within this function. Open
return scanPunctuator();
Avoid too many return
statements within this function. Open
return scanRegExp();
Avoid too many return
statements within this function. Open
return scanRegExp();
Avoid too many return
statements within this function. Open
return scanNumericLiteral();
Avoid too many return
statements within this function. Open
return parseClassExpression();
Avoid too many return
statements within this function. Open
return parseObjectInitialiser();
Avoid too many return
statements within this function. Open
return parseXJSElement();
Avoid too many return
statements within this function. Open
return mappingA.generatedColumn - mappingB.generatedColumn;