resource-watch/control-tower

View on GitHub
app/src/app.js

Summary

Maintainability
B
4 hrs
Test Coverage
B
81%

Function init has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function init() {
    return new Promise((resolve, reject) => {
        async function onDbReady(err) {
            if (err) {
                if (retries >= 0) {
Severity: Major
Found in app/src/app.js - About 2 hrs to fix

    Function onDbReady has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            async function onDbReady(err) {
                if (err) {
                    if (retries >= 0) {
                        // eslint-disable-next-line no-plusplus
                        retries--;
    Severity: Major
    Found in app/src/app.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status