f96q/kptboard

View on GitHub
app/javascripts/components/ActionCable.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function ActionCable has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const ActionCable = (props) => {
  const dispatch = useDispatch()

  useEffect(() => {
    const cable = actioncable.createConsumer()
Severity: Minor
Found in app/javascripts/components/ActionCable.js - About 1 hr to fix

    Function received has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const received = (data) => {
          const result = humps.camelizeKeys(data)
          switch (result.type) {
            case 'SET_RETROSPECTIVE':
              dispatch(actions.global.setRetrospective({ retrospective: result.retrospective }))
    Severity: Minor
    Found in app/javascripts/components/ActionCable.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status