cloudfoundry/korifi

View on GitHub
api/handlers/app.go

Summary

Maintainability
B
4 hrs
Test Coverage
A
97%

Showing 2 of 3 total issues

File app.go has 648 lines of code (exceeds 500 allowed). Consider refactoring.
Wontfix

package handlers
 
import (
"context"
"errors"
Severity: Minor
Found in api/handlers/app.go - About 5 hrs to fix

    App has 29 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type App struct {
    serverURL url.URL
    appRepo CFAppRepository
    dropletRepo CFDropletRepository
    processRepo CFProcessRepository
    Severity: Minor
    Found in api/handlers/app.go - About 3 hrs to fix

      Function NewApp has 12 arguments (exceeds 5 allowed). Consider refactoring.
      Open

      serverURL url.URL,
      appRepo CFAppRepository,
      dropletRepo CFDropletRepository,
      processRepo CFProcessRepository,
      routeRepo CFRouteRepository,
      Severity: Major
      Found in api/handlers/app.go - About 1 hr to fix
        Category
        Status