Showing 566 of 915 total issues
Avoid deeply nested control flow statements. Open
Open
if (idx === -1 || ((idx > 0) && domain.charAt(idx - 1) !== '.')) {
// Break if not found, or not dot separation.
continue;
}
Avoid deeply nested control flow statements. Open
Open
if (!exists) {
initialPlugins.push(plugins[foundPluginId]);
}
Avoid deeply nested control flow statements. Open
Open
if (type) {
property.type = type;
}
Avoid deeply nested control flow statements. Open
Open
if (!(key in context) || key === 'whitelistRecord') {
context[key] = r.data[key];
hasNewData = true;
}
Avoid deeply nested control flow statements. Open
Open
if (error) {
console.error(error.reason);
if (error.evidence) {
console.error(error.evidence+'\n');
}
Avoid deeply nested control flow statements. Open
Open
while (!match && j < res.length) {
match = uri.match(res[j]);
j++;
}
Avoid deeply nested control flow statements. Open
Open
for(var type in protocol) {
if (!(type in recordProtocol)) {
recordProtocol[type] = protocol[type];
}
}
Avoid deeply nested control flow statements. Open
Open
for(var key in r.data) {
var v = r.data[key];
// TODO: postprocessing meta plugins.
Avoid deeply nested control flow statements. Open
Open
if (media) {
property.media = media;
}
Avoid deeply nested control flow statements. Open
Open
if (v) {
item[i] = v;
}
Consider simplifying this complex logical expression. Open
Open
if (!/\btoken\b/.test(responseType) ||
parseInt(provider.oauth.version, 10) < 2 ||
(opts.display === 'none' && provider.oauth.grant && session && session.refresh_token)) {
// Add the oauth endpoints
Consider simplifying this complex logical expression. Open
Open
if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || e.which == KEY.ENTER || e.which === KEY.BACKSPACE) {
return;
}
Consider simplifying this complex logical expression. Open
Open
if (i) {
var n = w;
n.rE || n.eE || (k += r),
D += f();
do
Consider simplifying this complex logical expression. Open
Open
if (('File' in w && data instanceof w.File) ||
('Blob' in w && data instanceof w.Blob) ||
('FileList' in w && data instanceof w.FileList)) {
data = {file: data};
}
Consider simplifying this complex logical expression. Open
Open
if (this._moved = !1,
!(t.shiftKey || 1 !== t.which && 1 !== t.button && !t.touches || (o.DomEvent.stopPropagation(t),
o.Draggable._disabled || (o.DomUtil.disableImageDrag(),
o.DomUtil.disableTextSelection(),
this._moving)))) {
Consider simplifying this complex logical expression. Open
Open
if (req.oauthshim &&
req.oauthshim.redirect &&
req.oauthshim.data &&
req.oauthshim.data.access_token &&
req.oauthshim.options &&
Consider simplifying this complex logical expression. Open
Open
if ((meta.og.video && !meta.og.type )|| (meta.og.type && typeof meta.og.type === 'string' && meta.og.type.match(/video|movie/i)) || /\/videos?\//i.test(url)) {
has_player = true;
}
Consider simplifying this complex logical expression. Open
Open
if ("relative" === i && !a.offsetLeft) {
var l = o.DomUtil.getStyle(a, "width")
, u = o.DomUtil.getStyle(a, "max-width")
, c = a.getBoundingClientRect();
("none" !== l || "none" !== u) && (s += c.left + a.clientLeft),
Consider simplifying this complex logical expression. Open
Open
if (n += a.offsetTop || 0,
s += a.offsetLeft || 0,
n += parseInt(o.DomUtil.getStyle(a, "borderTopWidth"), 10) || 0,
s += parseInt(o.DomUtil.getStyle(a, "borderLeftWidth"), 10) || 0,
i = o.DomUtil.getStyle(a, "position"),
Consider simplifying this complex logical expression. Open
Open
if (/article|blog|news|post|noticia/i.test(url)
|| (/\/(\d{4})\/(\d{2})\/(\d{2})/).test(url)
|| (meta.og && meta.og.type && typeof meta.og.type === 'string' && meta.og.type.match(/article|post/i))) {
has_reader = true;