ahbeng/NUSMods

View on GitHub
website/src/views/venues/VenueList.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function VenueList has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const VenueList: React.FC<Props> = (props) => {
  // Added during the horrible COVID-19 times to hide E-Learning venues
  const physicalVenues = props.venues.filter((venue) => !venue.startsWith('E-Learn'));
  const venueList = groupBy(physicalVenues, (venue) => venue.charAt(0).toUpperCase());
  const sortedVenueList = sortBy(toPairs(venueList), ([key]) => key);
Severity: Minor
Found in website/src/views/venues/VenueList.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status