cloudfoundry/cf-k8s-controllers

View on GitHub
api/actions/process_stats.go

Summary

Maintainability
A
1 hr
Test Coverage

Method ProcessStats.FetchStats has 69 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (a *ProcessStats) FetchStats(ctx context.Context, authInfo authorization.Info, processGUID string) ([]PodStatsRecord, error) {
    processRecord, err := a.processRepo.GetProcess(ctx, authInfo, processGUID)
    if err != nil {
        return nil, err
    }
Severity: Minor
Found in api/actions/process_stats.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status