src/lifecycles/unload.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function toUnloadPromise has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function toUnloadPromise(app: any, mooaInstance?: any) {
  const unloadInfo = appsToUnload[app.name]

  if (app.status === StatusEnum.NOT_LOADED) {
    unloadingApp(app, unloadInfo)
Severity: Minor
Found in src/lifecycles/unload.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return app
    Severity: Major
    Found in src/lifecycles/unload.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return app
      Severity: Major
      Found in src/lifecycles/unload.ts - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status