cloudfoundry/cf-k8s-controllers

View on GitHub
api/handlers/app.go

Summary

Maintainability
C
7 hrs
Test Coverage

File app.go has 573 lines of code (exceeds 500 allowed). Consider refactoring.
Open

package handlers

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

    App has 26 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 10 arguments (exceeds 5 allowed). Consider refactoring.
      Open

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

        There are no issues that match your filters.

        Category
        Status