fewieden/MMM-soccer

View on GitHub

Showing 1 of 35 total issues

Function handleLeagueSwitch has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

handleLeagueSwitch(data) {
const countries = Object.keys(this.config.leagues);
 
for (const country of countries) {
const regexp = new RegExp(country, 'g');
Severity: Minor
Found in MMM-soccer.js - About 25 mins to fix
Severity
Category
Status
Source
Language