Showing 110 of 110 total issues
Function UNSAFE_componentWillReceiveProps
has a Cognitive Complexity of 11 (exceeds 10 allowed). Consider refactoring. Open
Open
UNSAFE_componentWillReceiveProps(nextProps) {
const {
layoutSelector: newLayoutSelector,
data: newData,
keySelector: newKeySelector,
- 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 render
has a Cognitive Complexity of 11 (exceeds 10 allowed). Consider refactoring. Open
Open
render() {
const {
error,
hint,
keySelector,
- 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
FIXME found Open
Open
// FIXME: deprecated
- Exclude checks
FIXME found Open
Open
// FIXME: generate tabList when tabs change
- Exclude checks
TODO found Open
Open
// TODO: also use nexProps for updateFromProps
- Exclude checks
FIXME found Open
Open
// FIXME: remove this.stateHoveredId and this.state.stateSelectedIds
- Exclude checks
TODO found Open
Open
// TODO: memoize this operation
- Exclude checks
TODO found Open
Open
// TODO: handle UNSAFE_componentWillReceiveProps
- Exclude checks
FIXME found Open
Open
// FIXME: remove image on component unmount
- Exclude checks
FIXME found Open
Open
// FIXME: this may break
- Exclude checks
FIXME found Open
Open
// FIXME: this may break
- Exclude checks
FIXME found Open
Open
// FIXME: this may break
- Exclude checks
FIXME found Open
Open
// FIXME: optimize this
- Exclude checks
FIXME found Open
Open
// FIXME: ref may not be needed
- Exclude checks
FIXME found Open
Open
// FIXME: use strings
- Exclude checks
TODO found Open
Open
// TODO: use variables
- Exclude checks
TODO found Open
Open
// TODO: memo breaks typings
- Exclude checks
TODO found Open
Open
// TODO: consider the case where height doesn't fit on either side (top or bottom)
- Exclude checks
FIXME found Open
Open
// FIXME: move to different file
- Exclude checks
FIXME found Open
Open
// FIXME: why is data mutated here @frozenhelium?
- Exclude checks