-
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
Expand list of allowed licenses to include BSD #97
Conversation
academo
commented
Mar 8, 2023
- Expand allowed licences and use regex instead of strings
- Add clarification comment
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 readme section on the analyzers lists the previously accepted list. Given this expansion I suggest adding under https://github.com/grafana/plugin-validator#license a new statement:
We accept the following licenses for community plugins: BSD, MIT, Apache 2.0, LGPL3, GPL3, AGPL3.
Then change the description for the license analyzer in https://github.com/grafana/plugin-validator#analyzers to be:
Ensures the [license type](https://github.com/grafana/plugin-validator#license) specified is allowed.
Eventually we should also update the main docs as well to make sure this is clear up front. Until theres a better place, we should probably just update the error message so instead of linking to https://grafana.com/licensing/, again link to https://github.com/grafana/plugin-validator#license
@@ -89,13 +89,14 @@ Usage plugincheck2: | |||
If set, plugincheck returns non-zero exit code for warnings |
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 applied prettier formatting to this file for more legibility
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.
Readme LTGM - thank you! May still want to update the error message in license.go
but thats non-blocking
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.
LGTM
@sympatheticmoose if you are up to it and want to dig into how our main docs at grafana/grafana work - you could add a "license" section to https://grafana.com/docs/grafana/latest/developers/plugins/publishing-and-signing-criteria/
require.Len(t, interceptor.Diagnostics, 0) | ||
} | ||
|
||
func TestInvalidUnilicenseLicense(t *testing.T) { |
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: Typo: The name of the license is "unlicense" 😃