asteris-llc/converge

View on GitHub
resource/user/preparer.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Preparer.Prepare has 5 return statements (exceeds 4 allowed).
Open

func (p *Preparer) Prepare(ctx context.Context, render resource.Renderer) (resource.Task, error) {
    if p.UID != nil && *p.UID == math.MaxUint32 {
        // the maximum uid on linux is MaxUint32 - 1
        return nil, fmt.Errorf("user \"uid\" parameter out of range")
    }
Severity: Major
Found in resource/user/preparer.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status