Showing 179 of 292 total issues
Function condense
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function condense(unmatched, map, filter, context, xml) {
Function superMatcher
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
superMatcher = function(seed, context, xml, results, expandContext) {
Function CHILD
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
"CHILD": function(type, what, argument, first, last) {
Function Animation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Animation (el, css, timing, onanimationstart, onanimationend) {
Function animateCss
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function animateCss (el, prop, timing, from, to) {
Function superMatcher
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
superMatcher = function(seed, context, xml, results, expandContext) {
Function condense
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function condense(unmatched, map, filter, context, xml) {
Function CHILD
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
"CHILD": function(type, what, argument, first, last) {
Function ifContains
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
ifContains: function (tw) {
var ifString = this.con.split(tw).length === 1 ? false : true;
if (typeof tw === "string" && typeof this.con === "object" && this.con.length) {
} else if (typeof tw === "string" && typeof this.con === "string") {
- 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 toPrimitive
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
var toPrimitive = function toPrimitive (input) {
var val, valueOf, toString;
if (isPrimitive(input)) {
return input;
- 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
Avoid too many return
statements within this function. Open
Open
return results;
Avoid too many return
statements within this function. Open
Open
return results;
Avoid too many return
statements within this function. Open
Open
return select(selector.replace(rtrim, "$1"), context, results, seed);
Avoid too many return
statements within this function. Open
Open
return new Dom(input);
Avoid too many return
statements within this function. Open
Open
return win.Hilo;
Avoid too many return
statements within this function. Open
Open
return new Dom(input);
Avoid too many return
statements within this function. Open
Open
return results;
Avoid too many return
statements within this function. Open
Open
return win.Hilo;
Avoid too many return
statements within this function. Open
Open
return results;
Avoid too many return
statements within this function. Open
Open
return a.compareDocumentPosition ? -1 : 1;