shootismoke/common

View on GitHub

Showing 2 of 9 total issues

Consider simplifying this complex logical expression.
Open

if (
from === 'ppb' ||
from === 'ppm' ||
from === 'particles/cm³' ||
to === 'ppb' ||
Severity: Major
Found in packages/convert/src/convert.ts - About 40 mins to fix

    Function normalize has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    export function normalize(data: AqicnData): OpenAQResults {
    const stationId = `aqicn|${data.idx}`;
     
    // Sometimes we don't get geo
    if (!data.city.geo) {
    Severity: Minor
    Found in packages/dataproviders/src/providers/aqicn/normalize.ts - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language