ahbeng/NUSMods

View on GitHub
website/src/reducers/theme.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

function theme(state: ThemeState = defaultThemeState, action: Actions): ThemeState {
  function setTheme(newTheme: string): ThemeState {
    // Update theme analytics info
    withTracker((tracker) => tracker.setCustomDimension(DIMENSIONS.theme, newTheme));

Severity: Minor
Found in website/src/reducers/theme.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status