johnsonjh/gfpsgo

View on GitHub
internal/proc/ns.go

Summary

Maintainability
A
35 mins
Test Coverage

Function ReadMappings has 5 return statements (exceeds 4 allowed).
Open

func ReadMappings(path string) ([]IDMap, error) {
    file, err := os.Open(path)
    if err != nil {
        return nil, errors.Wrapf(err, "cannot open %s", path)
    }
Severity: Major
Found in internal/proc/ns.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status