time/datasource/geipan/GeipanHttpDatasource.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function getFromRow has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  protected getFromRow(context: RR0SsgContext, row: Element): GeipanCaseSummary {
    const linkField = row.querySelector(".fiche-download-icon")
    const caseLink = linkField.firstElementChild as HTMLAnchorElement
    const url = new URL(caseLink.href, this.baseUrl)
    const caseField = row.querySelector(".cas_title")
Severity: Minor
Found in time/datasource/geipan/GeipanHttpDatasource.ts - About 1 hr to fix

    Function readCases has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      protected async readCases(context: RR0SsgContext): Promise<GeipanCaseSummary[]> {
        const time = context.time
        const day = time.getDayOfMonth()
        const dayStartStr = day ? String(day).padStart(2, "0") : "01"
        const dayEndStr = day ? String(day).padStart(2, "0") : "31"
    Severity: Minor
    Found in time/datasource/geipan/GeipanHttpDatasource.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status