netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/modules/zfspool/collect.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func parseZpoolListOutput(bs []byte) ([]zpoolStats, error) {
    var lines []string
    sc := bufio.NewScanner(bytes.NewReader(bs))
    for sc.Scan() {
        if text := strings.TrimSpace(sc.Text()); text != "" {
Severity: Major
Found in src/go/collectors/go.d.plugin/modules/zfspool/collect.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status