SU-SWS/stanford_profile_helper

View on GitHub
modules/stanford_events/pdb_components/mini-calendar/src/index.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function App has 127 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function App() {
  const apiUrl = '/jsonapi/node/stanford_event';
  const currentDate = new Date();

  const [anchorEl, setAnchorEl] = useState(null);
Severity: Major
Found in modules/stanford_events/pdb_components/mini-calendar/src/index.js - About 5 hrs to fix

    Function getEvents has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      async function getEvents(url, startDate, endDate) {
        const filters = {status: 1};
        if (startDate !== undefined) {
          filters.startDate = {
            condition: {
    Severity: Minor
    Found in modules/stanford_events/pdb_components/mini-calendar/src/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status