cloudfoundry/cf-k8s-controllers

View on GitHub
api/presenter/droplet.go

Summary

Maintainability
A
1 hr
Test Coverage
A
96%

Function ForDroplet has 51 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func ForDroplet(dropletRecord repositories.DropletRecord, baseURL url.URL) DropletResponse {
    toReturn := DropletResponse{
        GUID:      dropletRecord.GUID,
        CreatedAt: formatTimestamp(&dropletRecord.CreatedAt),
        UpdatedAt: formatTimestamp(dropletRecord.UpdatedAt),
Severity: Minor
Found in api/presenter/droplet.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status