-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feat: Add flag to select specific analyzer to run #264
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.
nice! please make sure to add an integration test with this case here
https://github.com/grafana/plugin-validator/blob/main/pkg/cmd/plugincheck2/main_test.go
You can use the same fixtures
Also remember to update the README file to include this flag in the documentation
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.
Awesome work! 🎉 Just one minor nit, but LGTM otherwise
pkg/cmd/plugincheck2/main_test.go
Outdated
type TC struct { | ||
File string | ||
ExtraArgs string | ||
JsonReport JsonReport | ||
} |
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.
Nit: can we unexport this?
type TC struct { | |
File string | |
ExtraArgs string | |
JsonReport JsonReport | |
} | |
type tc struct { | |
file string | |
extraArgs string | |
jsonReport JsonReport | |
} |
This PR adds a new flag to
plugincheck2
command line:analyzer
. It will allow us to select individuals analyzers to run.This will allow us to use
plugincheck2
in the CI provided bycreate-plugin
to validade theplugin.json
format as required here: grafana/plugin-tools#1062OBS: The way that our analyzers are implemented will guarantee that all the required analyzer will run even when individual analyzers are selected to run with the new flag.