firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/mysql/mycnf.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func getUser() (user string) {
    if user = os.Getenv("LOGNAME"); user != "" {
        return user
    }
    if user = os.Getenv("USER"); user != "" {
Severity: Major
Found in src/go/plugin/go.d/modules/mysql/mycnf.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status