digitalfabrik/integreat-app

View on GitHub
shared/api/models/EventModel.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function toICal has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  toICal(baseUrl: string, appName: string, recurring: boolean): string {
    const { title, location, path, date, excerpt, lastUpdate } = this
    const url = `${baseUrl}${path}`
    const uid = v5(`${url}/${formatDateICal(lastUpdate)}`, v5.URL)
    const timezone = date.startDate.zone.name
Severity: Minor
Found in shared/api/models/EventModel.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status