Showing 1,485 of 3,294 total issues
Avoid deeply nested control flow statements. Open
Open
if ( !status && s.isLocal && !s.crossDomain ) {
status = responses.text ? 200 : 404;
// IE - #1450: sometimes returns 1223 when it should be 204
} else if ( status === 1223 ) {
status = 204;
Avoid deeply nested control flow statements. Open
Open
if (_prefType !== _initialType) {
_prefType = _initialType;
}
Avoid deeply nested control flow statements. Open
Open
if ( !old ) {
context.setAttribute( "id", nid );
} else {
nid = nid.replace( /'/g, "\\$&" );
}
Avoid deeply nested control flow statements. Open
Open
if ( xhrOnUnloadAbort ) {
delete xhrCallbacks[ handle ];
}
Avoid deeply nested control flow statements. Open
Open
if ( typeof cur !== "string" ) {
if ( elem === cur ) {
match = true;
break;
}
Avoid deeply nested control flow statements. Open
Open
if ( xml && xml.documentElement /* #4958 */ ) {
responses.xml = xml;
}
Avoid deeply nested control flow statements. Open
Open
if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
conv2 = converters[ tmp[1] + " " + current ];
if ( conv2 ) {
conv1 = converters[ conv1 ];
if ( conv1 === true ) {
Avoid deeply nested control flow statements. Open
Open
if (pref && pref.type === "object") {
result = _.extend({}, pref.initial, result);
}
Function showOpenDialog
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function showOpenDialog(allowMultipleSelection, chooseDirectories, title, initialPath, fileTypes, callback) {
Avoid deeply nested control flow statements. Open
Open
if ($next.length) {
result = {
where: ABOVEVIEW,
which: $next
};
Avoid deeply nested control flow statements. Open
Open
} else if (mouseIsInTopHalf($view)) {
// we're inside the top half of
// a view so prepend to the view we hit
result = {
where: ABOVEVIEW,
Avoid deeply nested control flow statements. Open
Open
if (doc.isDirty) {
editConflicts.push({doc: doc, fileTime: fileTime});
} else {
toReload.push(doc);
}
Function render
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function render(element, viewModel, projectRoot, actions, forceRender, platform) {
Function deprecateEvent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function deprecateEvent(outbound, inbound, oldEventName, newEventName, canonicalOutboundName, canonicalInboundName) {
Avoid deeply nested control flow statements. Open
Open
if (err) {
console.log("Cannot move unreadable preferences file " + path + " to trash!!");
} else {
console.log("Brackets has recreated the unreadable preferences file " + path + ". You may refer to the deleted file in trash in case you need it!!");
}
Function _generateMatchList
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _generateMatchList(query, str, originalQuery, originalStr, specials, startingSpecial) {
Function _wholeStringSearch
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _wholeStringSearch(queryLower, compareLower, originalQuery, originalStr, specials, lastSegmentSpecialsIndex) {
Avoid deeply nested control flow statements. Open
Open
if (doc.isDirty) {
deleteConflicts.push({doc: doc, fileTime: -1});
} else {
toClose.push(doc);
}
Avoid deeply nested control flow statements. Open
Open
if (ghostIsBelow($hit)) {
return result;
}
Avoid deeply nested control flow statements. Open
Open
if (pane.id !== _activePaneId) {
// activate the pane which will put focus in the pane's doc
setActivePaneId(pane.id);
// reset the focus to the inline editor
current.focus();