Showing 6,856 of 14,752 total issues
Consider simplifying this complex logical expression. Open
Open
if (fromCmp <= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.to, from) >= 0 : cmp(found.to, from) > 0) ||
fromCmp >= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.from, to) <= 0 : cmp(found.from, to) < 0))
{ return true }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (opId == hist.lastSelOp ||
(origin && hist.lastSelOrigin == origin &&
(hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))))
{ hist.done[hist.done.length - 1] = sel }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) { return }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
} else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {
if (sp.to != null && sp.to != pos && nextChange > sp.to) {
nextChange = sp.to
spanEndStyle = ""
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
} else if (unit == "word" || unit == "group") {
var sawType = null, group = unit == "group"
var helper = doc.cm && doc.cm.getHelper(pos, "wordChars")
for (var first = true;; first = false) {
if (dir < 0 && !moveOnce(!first)) { break }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {
var rSpan = node.parentNode.getClientRects()[0]
if (rSpan)
{ rect = {left: rSpan.left, right: rSpan.left + charWidth(cm.display), top: rSpan.top, bottom: rSpan.bottom} }
else
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view &&
(display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo))
{ return false }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad &&
cmp(minPos(curAnchor, curFocus), from) == 0 &&
cmp(maxPos(curAnchor, curFocus), to) == 0)
{ return }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (display.wheelStartX == null) {
display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop
display.wheelDX = dx; display.wheelDY = dy
setTimeout(function () {
if (display.wheelStartX == null) { return }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) {
out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } ';
} else {
out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; ';
var $method = 'checkDataType' + ($typeIsArray ? 's' : '');
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
} else if (
(ch == "<" && stream.eat("-")) ||
(ch == "<" && stream.match("<-")) ||
(ch == "-" && stream.match(/>>?/))
) {
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {
components.reference = "same-document";
} else if (components.scheme === undefined) {
components.reference = "relative";
} else if (components.fragment === undefined) {
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (options.data == null && model && (method === 'create' || method === 'update' || method === 'patch')) {
params.contentType = 'application/json';
params.data = JSON.stringify(options.attrs || model.toJSON(options));
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (data && isLaziable(data[0]) && data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && !data[4].length && data[9] == 1) {
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
} else {
wrapper = (func.length == 1 && isLaziable(func)) ? wrapper[funcName]() : wrapper.thru(func);
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (!(isObjectLike(value) && objToString.call(value) == objectTag && !isArguments(value)) ||
(!hasOwnProperty.call(value, 'constructor') && (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor)))) {
return false;
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (isArrayLike(value) && (isArray(value) || isString(value) || isArguments(value) ||
(isObjectLike(value) && isFunction(value.splice)))) {
return !value.length;
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
}else if (typeof holderModel[property] === 'object' && holderModel[property] !== null ) {
reference[property] = iterateAndExtend(reference[property] ? reference[property] : {}
, model1 && model1[property] ? model1[property] : {}
, model2 && model2[property] ? model2[property] : {}
, model3 && model3[property] ? model3[property] : {}
- Create a ticketCreate a ticket
Method getListCellRendererComponent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
- Create a ticketCreate a ticket
Method doLhm
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private void doLhm(SingleNodeContainer p2Container, LinkedHashMap<Integer, Double> lhm, LinkedHashMap<Integer, Matrix> lhmm, int fromPort, int toKey) throws SQLException {
- Create a ticketCreate a ticket