src/partials/data-parsers/windy-parser.ts
Function parse
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse(): this {
this.parsedData = {
name: this.extractedData.name,
models: this.extractedData.models.map((model) => {
const hours: WindyModelHour[] = model.time.map((hour, i) => ({
Function models
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
models: this.extractedData.models.map((model) => {
const hours: WindyModelHour[] = model.time.map((hour, i) => ({
hour,
windspeed: model.windspeed[i],
windgust: model.windgust[i],
Function extract
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
extract(): this {
this.extractedData = {
name: 'Windy',
date: this.getDataArray(['.sticky-title-wrapper', '.td-days'], (el) => this.$(el).data('day')),
models: this.getDataArray(['.legend-left', '.legend-windCombined'], (el, i) => {