Skip to content
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

Merged
merged 8 commits into from
Mar 8, 2023

Conversation

academo
Copy link
Member

@academo academo commented Mar 8, 2023

  • Expand allowed licences and use regex instead of strings
  • Add clarification comment

@academo academo self-assigned this Mar 8, 2023
@academo academo added the enhancement New feature or request label Mar 8, 2023
Copy link
Contributor

@sympatheticmoose sympatheticmoose left a 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
Copy link
Member Author

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

Copy link
Contributor

@sympatheticmoose sympatheticmoose left a 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

Copy link
Contributor

@tolzhabayev tolzhabayev left a 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) {
Copy link
Member

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" 😃

@academo academo merged commit df0fa6b into main Mar 8, 2023
@academo academo deleted the academo/update-allowed-linceses branch March 8, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants