Showing 1,896 of 2,859 total issues
Consider simplifying this complex logical expression. Open
Open
if (!curr || dFromUrl && cFromUrl && d._from !== curr.from
|| d.version !== curr.version
|| d.version !== l.version) {
if (parsed.type === 'local') return updateLocalDeps(l.version)
Consider simplifying this complex logical expression. Open
Open
if (!er &&
data &&
!context.explicit &&
context.family[data.name] === data.version &&
!npm.config.get("force") &&
Consider simplifying this complex logical expression. Open
Open
if (token.previous and token.previous.type == Type.WHITESPACE and
not token.previous.IsFirstInLine() and
not (last_non_space_token and last_non_space_token.line_number ==
token.line_number and
last_non_space_token.type == Type.SEMICOLON)):
Consider simplifying this complex logical expression. Open
Open
if (not first_in_line and token.previous.type == Type.WHITESPACE and
last_non_space_token and
last_non_space_token.type in Type.EXPRESSION_ENDER_TYPES):
self._HandleError(errors.EXTRA_SPACE, 'Extra space before "["',
token.previous, Position.All(token.previous.string))
Consider simplifying this complex logical expression. Open
Open
if state.GetFunction().is_interface:
if token.previous and token.previous.type == Type.PARAMETERS:
self._HandleError(errors.INTERFACE_CONSTRUCTOR_CANNOT_HAVE_PARAMS,
'Interface constructor cannot have parameters',
token.previous)
Consider simplifying this complex logical expression. Open
Open
if (flag.flag_type not in ('suppress', 'enum') and
(flag.type == None or flag.type == '' or flag.type.isspace())):
self._HandleError(errors.MISSING_JSDOC_TAG_TYPE,
'Missing type in %s tag' % token.string, token)
Consider simplifying this complex logical expression. Open
Open
if (function.has_this and function.doc and
not function.doc.HasFlag('this') and
not function.is_constructor and
not function.is_interface and
'.prototype.' not in function.name):
Consider simplifying this complex logical expression. Open
Open
if (FLAGS.strict and not self._is_html and state.InTopLevel() and
not state.InBlock()):
# Check if we're in a fileoverview or constructor JsDoc.
doc_comment = state.GetDocComment()
Consider simplifying this complex logical expression. Open
Open
if line and line[-1].isspace():
error(filename, linenum, 'whitespace/end_of_line', 4,
'Line ends in whitespace. Consider deleting these extra spaces.')
# There are certain situations we allow one space, notably for labels
elif ((initial_spaces == 1 or initial_spaces == 3) and
Function start
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.start = function(prompt, source, eval_, useGlobal, ignoreUndefined) {
Function REPLServer
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined) {
Function pbkdf2Sync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.pbkdf2Sync = function(password, salt, iterations, keylen, digest) {
Function readableAddChunk
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function readableAddChunk(stream, state, chunk, encoding, addToFront) {
Function _listen2
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Server.prototype._listen2 = function(address, port, addressType, backlog, fd) {
Function formatArray
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
Function afterConnect
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function afterConnect(status, handle, req, readable, writable) {
Function fail
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function fail(actual, expected, message, operator, stackStartFunction) {
Function readSync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
fs.readSync = function(fd, buffer, offset, length, position) {
Function SecurePair
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function SecurePair(context, isServer, requestCert, rejectUnauthorized,
options) {
Function writeSync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
fs.writeSync = function(fd, buffer, offset, length, position) {