sparkletown/sparkle

View on GitHub
src/store/reducers/AnimateMap.ts

Summary

Maintainability
B
5 hrs
Test Coverage

Function animateMapReducer has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const animateMapReducer: AnimateMapReducer = (
  state = initialAnimateMapState,
  action: AnimateMapActions
): AnimateMapState => {
  const immutableState = state;
Severity: Minor
Found in src/store/reducers/AnimateMap.ts - About 1 hr to fix

Avoid too many return statements within this function.
Open

      return { ...immutableState, hero: hero };
Severity: Major
Found in src/store/reducers/AnimateMap.ts - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...immutableState, venues: venues };
Severity: Major
Found in src/store/reducers/AnimateMap.ts - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...immutableState, pointer: pointer };
Severity: Major
Found in src/store/reducers/AnimateMap.ts - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...immutableState, environmentSound: environmentSound };
Severity: Major
Found in src/store/reducers/AnimateMap.ts - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...immutableState, room: room };
Severity: Major
Found in src/store/reducers/AnimateMap.ts - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...immutableState, cameraRect: cameraRect };
Severity: Major
Found in src/store/reducers/AnimateMap.ts - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...immutableState, users: users };
Severity: Major
Found in src/store/reducers/AnimateMap.ts - About 30 mins to fix

There are no issues that match your filters.

Category
Status