firehol/netdata

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

Summary

Maintainability
A
35 mins
Test Coverage

Method apcupsdClient.receive has 5 return statements (exceeds 4 allowed).
Open

func (c *apcupsdClient) receive() ([]byte, error) {
    // https://github.com/therealbstern/apcupsd/blob/224d19d5faa508d04267f6135fe53d50800550de/src/apcnis.c#L54

    var buf bytes.Buffer
    msgLength := make([]byte, 2)
Severity: Major
Found in src/go/plugin/go.d/modules/apcupsd/client.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status