Showing 7 of 7 total issues
Function registerListener
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
registerListener(listener, scope, once) { const _listeners = this.listenerBoxes.filter(box => box.listener === listener && box.scope === scope); if (!_listeners.length) { if (this.listenersNeedCloning) {
- Read upRead up
- Create a ticketCreate a ticket
Function default
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
export default function (x) { const isArray = Array.isArray || _isArray; if (!x) { return false; }
- Read upRead up
- Create a ticketCreate a ticket
Function arityFn
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const arityFn=(function (FUNCTIONS) { return (arity, fn) => { if (typeof arity !== 'number') { throw new TypeError('Expected arity to be a number, got ' + arity); }
- Read upRead up
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return !!x.length;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return true;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return false;
- Create a ticketCreate a ticket