firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/apcupsd/status.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func parseStatus(resp []byte) (*apcupsdStatus, error) {
    var st apcupsdStatus
    sc := bufio.NewScanner(bytes.NewBuffer(resp))

    for sc.Scan() {
Severity: Minor
Found in src/go/plugin/go.d/modules/apcupsd/status.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status