netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/selector.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func parseSingleSelectorWord(word string) (selector, error) {
    if len(word) == 0 {
        return nil, errors.New("empty word")
    }
    neg := word[0] == '!'
Severity: Major
Found in src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/selector.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status