src/go/plugin/go.d/agent/discovery/sd/pipeline/selector.go
Function parseSingleSelectorWord
has 5 return statements (exceeds 4 allowed). Open
Open
func parseSingleSelectorWord(word string) (selector, error) {
if len(word) == 0 {
return nil, errors.New("empty word")
}
neg := word[0] == '!'