willtheorangeguy / willtheorangeguy.github.io

Function with cyclomatic complexity higher than threshold JS-R1005
Anti-pattern
Minor
5 months ago6 months old
Function has a cyclomatic complexity of 49 with "very-high" risk
1947                a = e.behavior;
1948            }
1949            return (
1950              a.forEach(function (s, l) {1951                if (i !== s || a.length === l + 1) return t;
1952                (i = t.placement.split("-")[0]), (o = at(i));
1953                var u = t.offsets.popper,
Function has a cyclomatic complexity of 34 with "very-high" risk
 523    }
 524  };
 525
 526  pJS.fn.particlesUpdate = function () { 527    for (var i = 0; i < pJS.particles.array.length; i++) {
 528      /* the particle */
 529      var p = pJS.particles.array[i];
Function has a cyclomatic complexity of 41 with "very-high" risk
 232
 233  /* --------- pJS functions - particles ----------- */
 234
 235  pJS.fn.particle = function (color, opacity, position) { 236    /* size */
 237    this.radius =
 238      (pJS.particles.size.random ? Math.random() : 1) *