-
-
Notifications
You must be signed in to change notification settings - Fork 673
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
Resolves #3081: add analyzer_flags
to nogo config
#3082
Resolves #3081: add analyzer_flags
to nogo config
#3082
Conversation
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.
Overall the direction looks good to me but there are some nits and copy pasting errors here and there that need to be fixed.
You would also want to add some documentation in places that mention nogo config json schema such as https://github.com/bazelbuild/rules_go/blob/master/go%2Fnogo.rst
analyzer_flags
to nogo configanalyzer_flags
to nogo config
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 can take a look later this week or weekend. |
Thanks for working on this. It's a pretty solid implementation. Thanks for reviewing too @sluongng |
What type of PR is this?
What does this PR do? Why is it needed?
Allow nogo config to specify flags to be passed to each analyzer via
analyzer_flags
. The ability to provide flags to eachanalyzer is something not currently supported by the driver, which makes it more troublesome to use configurable
analyzers in a Bazel Go project.
Which issues(s) does this PR fix?
#3081
Other notes for review
Being able to pass in a list of CLI arguments might add greater flexibility, but given the restrictive nature of Go's
FlagSet
API, it is unlikely that any analyzers in the wild will support positional arguments and the like.