Showing 460 of 700 total issues
Avoid deeply nested control flow statements. Open
Open
if (x1 >= x2) {
// Overlap detected.
return this.diffBisectSplit(text1, text2, x1, y1, deadline);
}
Avoid deeply nested control flow statements. Open
Open
if ( copyIsArray && !Array.isArray( src ) ) {
clone = [];
} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
clone = {};
} else {
Avoid deeply nested control flow statements. Open
Open
if ( ( event.result = ret ) === false ) {
event.preventDefault();
event.stopPropagation();
}
Avoid deeply nested control flow statements. Open
Open
if ( hasScripts ) {
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
jQuery.merge( scripts, getAll( node, "script" ) );
Avoid deeply nested control flow statements. Open
Open
if (result.score > q.peek().score) q.replaceTop(result);
Avoid deeply nested control flow statements. Open
Open
if (result.score > q.peek().score) q.replaceTop(result);
Avoid deeply nested control flow statements. Open
Open
if (hasOwn.call(val.value, _j)) {
urlConfigHtml += "<option value='" + escapeText(_j) + "'" + (config[val.id] === _j ? (selection = true) && " selected='selected'" : '') + '>' + escapeText(val.value[_j]) + '</option>';
}
Avoid deeply nested control flow statements. Open
Open
if ( Expr.relative[ tokens[ j ].type ] ) {
break;
}
Avoid deeply nested control flow statements. Open
Open
while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
cur = cur.replace( " " + clazz + " ", " " );
}
Avoid deeply nested control flow statements. Open
Open
if( $(menu).find('LI.hover').size() == 0 ) $(menu).find('LI:last').addClass('hover');
Avoid deeply nested control flow statements. Open
Open
if( $(menu).find('LI.hover').size() == 0 ) $(menu).find('LI:first').addClass('hover');
Consider simplifying this complex logical expression. Open
Open
if (
hitMode === "after" ||
hitMode === "before" ||
hitMode === "over"
) {
Consider simplifying this complex logical expression. Open
Open
if (hitMode === "after" || hitMode === "before" || hitMode === "over") {
markerOffsetX = dndOpts.dropMarkerOffsetX || 0;
switch (hitMode) {
case "before":
markerAt = "top";
Consider simplifying this complex logical expression. Open
Open
if ( !support.focusin ) {
jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
// Attach a single capturing handler on the document while someone wants focusin/focusout
var handler = function( event ) {
Consider simplifying this complex logical expression. Open
Open
if ( support.qsa &&
!nonnativeSelectorCache[ selector + " " ] &&
( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
// Support: IE 8 only
Consider simplifying this complex logical expression. Open
Open
if ( matcher[ expando ] ) {
// Find the next relative operator (if any) for proper handling
j = ++i;
for ( ; j < len; j++ ) {
Consider simplifying this complex logical expression. Open
Open
if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" &&
context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {
context = ( Expr.find[ "ID" ]( token.matches[ 0 ]
.replace( runescape, funescape ), context ) || [] )[ 0 ];
Consider simplifying this complex logical expression. Open
Open
if (value === '' || rSpecialJson.test(value) || rSpecialYaml.test(value[0]) || rUntrimmed.test(value) || rNumerical.test(value) || rBool.test(value)) {
if (!/\n/.test(value)) {
// Complex one-line string, use JSON (quoted string)
return JSON.stringify(value);
} // See also <https://yaml-multiline.info/>
Function _makeVirtualFunction
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _makeVirtualFunction(methodName, tree, base, extension, extName) {
Function nodeRender
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
nodeRender: function (ctx, force, deep, collapsed, _recursive) {