src/go/plugin/go.d/modules/gearman/collect.go
Method Gearman.collectStatus
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (g *Gearman) collectStatus(mx map[string]int64, statusData []byte) error {
/*
Same output as the "gearadmin --status" command:
FUNCTION\tTOTAL\tRUNNING\tAVAILABLE_WORKERS
Method Gearman.collectPriorityStatus
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (g *Gearman) collectPriorityStatus(mx map[string]int64, prioStatusData []byte) error {
/*
Same output as the "gearadmin --priority-status" command:
FUNCTION\tHIGH\tNORMAL\tLOW\tAVAILABLE_WORKERS
Method Gearman.collect
has 6 return statements (exceeds 4 allowed). Open
Open
func (g *Gearman) collect() (map[string]int64, error) {
if g.conn == nil {
conn, err := g.establishConn()
if err != nil {
return nil, err
Method Gearman.collectStatus
has 5 return statements (exceeds 4 allowed). Open
Open
func (g *Gearman) collectStatus(mx map[string]int64, statusData []byte) error {
/*
Same output as the "gearadmin --status" command:
FUNCTION\tTOTAL\tRUNNING\tAVAILABLE_WORKERS
Method Gearman.collectPriorityStatus
has 5 return statements (exceeds 4 allowed). Open
Open
func (g *Gearman) collectPriorityStatus(mx map[string]int64, prioStatusData []byte) error {
/*
Same output as the "gearadmin --priority-status" command:
FUNCTION\tHIGH\tNORMAL\tLOW\tAVAILABLE_WORKERS