time/datasource/geipan/GeipanHttpDatasource.ts
Function getFromRow
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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")
Function readCases
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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"