romain-gilliotte/timeslot-dag

View on GitHub

Showing 22 of 41 total issues

Avoid too many return statements within this function.
Open

    else if (periodicity === 'year') return TimeSlot.fromValue(utcDate.getUTCFullYear().toString());
Severity: Major
Found in src/timeslot.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return TimeSlot.fromValue(
            utcDate.getUTCFullYear().toString() +
              '-Q' +
              (1 + Math.floor(utcDate.getUTCMonth() / 3)).toString()
          );
    Severity: Major
    Found in src/timeslot.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language