Showing 556 of 650 total issues
Avoid too many return
statements within this function. Open
return !this.has[this.lowerCasedApm(value)];
Avoid too many return
statements within this function. Open
return uid.hex()
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
return 0 /* NOT_CONSTANT */;
Avoid too many return
statements within this function. Open
return i < 10 ? "0".concat(i) : String(i);
Avoid too many return
statements within this function. Open
return 0 /* NOT_CONSTANT */;
Avoid too many return
statements within this function. Open
return siblingsInCol[selfIndex + 1];
Avoid too many return
statements within this function. Open
return key in el;
Avoid too many return
statements within this function. Open
return 0 /* NOT_CONSTANT */;
Avoid too many return
statements within this function. Open
return returnType;
Avoid too many return
statements within this function. Open
return A;
Avoid too many return
statements within this function. Open
return true;
Avoid too many return
statements within this function. Open
return 0 /* NOT_CONSTANT */;
Avoid too many return
statements within this function. Open
return returnType;
Avoid too many return
statements within this function. Open
return scripts[i];
Avoid too many return
statements within this function. Open
if (A.length === lim) return A;
Function assertType
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function assertType(value, type) {
let valid;
const expectedType = getType(type);
if (isSimpleType(expectedType)) {
const t = typeof value;
- 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 updated
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
updated(el, { value, oldValue }, { transition }) {
if (!value === !oldValue)
return;
if (transition) {
if (value) {
- 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 normalizeObjectSlots
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
const normalizeObjectSlots = (rawSlots, slots, instance) => {
const ctx = rawSlots._ctx;
for (const key in rawSlots) {
if (isInternalKey(key))
continue;
- 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 setup
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
setup(props, { slots }) {
const instance = getCurrentInstance();
// KeepAlive communicates with the instantiated renderer via the
// ctx where the renderer passes in its internals,
// and the KeepAlive instance exposes activate/deactivate implementations.
- 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"