redbadger/pride-london-app

View on GitHub
src/data/event.js

Summary

Maintainability
B
5 hrs
Test Coverage

File event.js has 310 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// @flow
import R from "ramda";
import {
  set as setDate,
  diff as diffDate,
Severity: Minor
Found in src/data/event.js - About 3 hrs to fix

    Function getEventCategoryFromName has 70 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    export const getEventCategoryFromName = (
      category: EventCategoryName
    ): EventCategory => {
      switch (category) {
        case "Cabaret and Variety":
    Severity: Major
    Found in src/data/event.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status