toggle-corp/react-store

View on GitHub

Showing 110 of 110 total issues

Function UNSAFE_componentWillReceiveProps has a Cognitive Complexity of 11 (exceeds 10 allowed). Consider refactoring.
Open

    UNSAFE_componentWillReceiveProps(nextProps) {
        const {
            layoutSelector: newLayoutSelector,
            data: newData,
            keySelector: newKeySelector,
Severity: Minor
Found in components/View/GridLayoutEditor/index.js - About 25 mins to fix

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

    render() {
        const {
            error,
            hint,
            keySelector,
Severity: Minor
Found in components/Input/MultiSelectInput/index.js - About 25 mins to fix

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

// FIXME: deprecated
Severity: Minor
Found in utils/common.js by fixme

FIXME found
Open

        // FIXME: generate tabList when tabs change
Severity: Minor
Found in components/View/ScrollTabs/index.js by fixme

TODO found
Open

        // TODO: also use nexProps for updateFromProps

FIXME found
Open

        // FIXME: remove this.stateHoveredId and this.state.stateSelectedIds

TODO found
Open

        // TODO: memoize this operation
Severity: Minor
Found in components/View/List/index.js by fixme

TODO found
Open

        // TODO: handle UNSAFE_componentWillReceiveProps

FIXME found
Open

            // FIXME: remove image on component unmount

FIXME found
Open

            // FIXME: this may break

FIXME found
Open

            // FIXME: this may break

FIXME found
Open

            // FIXME: this may break

FIXME found
Open

            // FIXME: optimize this

FIXME found
Open

                    // FIXME: ref may not be needed

FIXME found
Open

            // FIXME: use strings

TODO found
Open

            // TODO: use variables

TODO found
Open

// TODO: memo breaks typings

TODO found
Open

    // TODO: consider the case where height doesn't fit on either side (top or bottom)
Severity: Minor
Found in utils/common.js by fixme

FIXME found
Open

// FIXME: move to different file
Severity: Minor
Found in components/View/Pager/index.js by fixme

FIXME found
Open

        // FIXME: why is data mutated here @frozenhelium?
Severity: Minor
Found in components/View/RawTable/index.js by fixme
Severity
Category
Status
Source
Language