New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add json support via expr helpers #25
Conversation
I would have called the function only |
@AlteredCoder : I'm afraid calling it "only" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see the json file used for the test. Can you point me this file ?
|
||
func matchEvent(expected types.Event, out types.Event, debug bool) ([]string, bool) { | ||
var retInfo []string | ||
var valid bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var valid = false
but not mandatory because it's the zero value
valid = false | ||
goto checkFinished | ||
} else { | ||
valid = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tool reporting this linter error, has the pretention to not display false positive. But from what I see it is a false positive.
They are in |
JsonExtract(evt.Parsed.Field, "my.sub_field.json[0]")