src/go/plugin/go.d/modules/apcupsd/status.go
Function parseStatus
has 60 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func parseStatus(resp []byte) (*apcupsdStatus, error) {
var st apcupsdStatus
sc := bufio.NewScanner(bytes.NewBuffer(resp))
for sc.Scan() {