pkg/filter/filter.go
Method Filter.UnmarshalYAML
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (f *Filter) UnmarshalYAML(unmarshal func(interface{}) error) error {
var value string
if unmarshal(&value) == nil {
f.Type = Exact
Method Filter.Match
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (f *Filter) Match(o string) (bool, error) { //nolint:gocyclo
switch f.Type {
case Empty, Exact:
return f.Value == o, nil
Method Filter.Match
has 10 return statements (exceeds 4 allowed). Wontfix
Wontfix
func (f *Filter) Match(o string) (bool, error) { //nolint:gocyclo
switch f.Type {
case Empty, Exact:
return f.Value == o, nil