johnsonjh/gfpsgo

View on GitHub
internal/proc/status.go

Summary

Maintainability
B
4 hrs
Test Coverage

Function parseStatus has 126 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func parseStatus(pid string, lines []string) (*Status, error) {
    s := Status{}
    errUnexpectedInput := fmt.Errorf(
        "unexpected input from /proc/%s/status",
        pid,
Severity: Major
Found in internal/proc/status.go - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status