Showing 297 of 342 total issues
Consider simplifying this complex logical expression. Open
Open
if (this[0]) {
i = v.buildFragment(e, this, l), o = i.fragment, s = o.firstChild, o.childNodes.length === 1 && (o = s);
if (s) {
n = n && v.nodeName(s, "tr");
for (u = i.cacheable || c - 1; a < c; a++) r.call(n && v.nodeName(this[a], "table") ? Lt(this[a], "tbody") : this[a], a === u ? o : v.clone(o, !0, !0))
Function needsSignature
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
function needsSignature( doclet ) {
var needsSig = false;
// function and class definitions always get a signature
if ( doclet.kind === 'function' || doclet.kind === 'class' ) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function exports
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
module.exports = (function() {
"use strict";
var cluster = master.cluster;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function access
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
access: function(e, n, r, i, s, o, u) {
Function access
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
access: function(e, n, r, i, s, o, u) {
Avoid deeply nested control flow statements. Open
Open
if (one_map[key][i] !== two_map[key][i]) {
return false;
}
Avoid deeply nested control flow statements. Open
Open
if (!n) for (r in a) {
s = r.split(" ");
if (s[1] === i) {
n = a[u + " " + s[0]] || a["* " + s[0]];
if (n) {
Avoid deeply nested control flow statements. Open
Open
if (!e) return S.apply(n, x.call(r, 0)), n;
Avoid deeply nested control flow statements. Open
Open
if (data[key][i] !== undefined && unique[data[key][i] + ""] === undefined) {
t += "&" + URI.buildQueryParameter(key, data[key][i]);
if (duplicates !== true) {
unique[data[key][i] + ""] = true;
}
Avoid deeply nested control flow statements. Open
Open
for (; r < s; r++) if (i.relative[e[r].type]) break;
Avoid deeply nested control flow statements. Open
Open
for (o = p.length - 1; o >= 0; --o) v.nodeName(p[o], "tbody") && !p[o].childNodes.length && p[o].parentNode.removeChild(p[o])
Function ct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function ct(e, t, n, r, i, s) {
Avoid deeply nested control flow statements. Open
Open
if (!s || !s.parentNode) return n;
Avoid deeply nested control flow statements. Open
Open
if (s.id === f) return n.push(s), n
Avoid deeply nested control flow statements. Open
Open
for (c = 0; c < t; ++c) if (i = m[c], o = f.match(i[1])) {
b = i[0];
break
}
Function kn
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function kn(e, n, r, i, s, o) {
Avoid deeply nested control flow statements. Open
Open
if (e(t, r, u)) return t.sizset = !0, t;
Avoid deeply nested control flow statements. Open
Open
if (n.events) for (s in n.events) l[s] ? v.event.remove(i, s) : v.removeEvent(i, s, n.handle);
Avoid deeply nested control flow statements. Open
Open
for (s = 0, o = n.length; s < o; s++) while (r.indexOf(" " + n[s] + " ") >= 0) r = r.replace(" " + n[s] + " ", " ");
Avoid deeply nested control flow statements. Open
Open
if (t.sizset) return t