Showing 213 of 291 total issues
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
if (length !== b.length) return false;
Avoid too many return
statements within this function. Open
Open
if (byteLength !== getByteLength(b)) return false;
Avoid too many return
statements within this function. Open
Open
if (keys(b).length !== length) return false;
Avoid too many return
statements within this function. Open
Open
if (typeof a != 'object' || typeof b != 'object') return false;
Avoid too many return
statements within this function. Open
Open
return true;
Avoid too many return
statements within this function. Open
Open
if (aStack[length] === a) return bStack[length] === b;
Avoid too many return
statements within this function. Open
Open
if (!eq(a[length], b[length], aStack, bStack)) return false;
Avoid too many return
statements within this function. Open
Open
if (!(has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
Avoid too many return
statements within this function. Open
Open
return deepEq(a, b, aStack, bStack);
Avoid too many return
statements within this function. Open
Open
return values(obj);
Function find_dos_VBM_index
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def find_dos_VBM_index(Data):
"""Finds the lowest index of the
:attr:`~effmass.inputs.Data.integrated_dos` array where the energy exceeds
:attr:`~effmass.inputs.Data.VBM`.
- 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 find_dos_CBM_index
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def find_dos_CBM_index(Data):
"""Finds the highest index of the
:attr:`~effmass.inputs.Data.integrated_dos` array where the energy is less
than :attr:`~effmass.inputs.Data.CBM`.
- 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"