gfw-api/gfw-subscription-api

View on GitHub
app/src/presenters/terraiPresenter.js

Summary

Maintainability
A
1 hr
Test Coverage
F
18%

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

    static async transform(results) {
        results.alert_count = results.value;
        let uri = `/query${results.downloadUrls.csv.split('download')[1]}`;
        uri = uri.replace('ORDER BY year, day', ' ORDER BY day DESC, year DESC LIMIT 10').replace(/&format=(csv|json|xml)/g, '');

Severity: Minor
Found in app/src/presenters/terraiPresenter.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status