cloudfoundry/cf-k8s-controllers

View on GitHub
api/presenter/build.go

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

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

func ForBuild(buildRecord repositories.BuildRecord, baseURL url.URL) BuildResponse {
    toReturn := BuildResponse{
        GUID:            buildRecord.GUID,
        CreatedAt:       formatTimestamp(&buildRecord.CreatedAt),
        UpdatedAt:       formatTimestamp(buildRecord.UpdatedAt),
Severity: Minor
Found in api/presenter/build.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status