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

Add tighter criteria for package compliance #23

Closed
wants to merge 1 commit into from
Closed

Add tighter criteria for package compliance #23

wants to merge 1 commit into from

Conversation

Paul-Reed
Copy link

This PR aims to make the following changes to the 'repository', 'bugs url' & 'bugs email' scorecard check.

  1. Repository
    Currently the scorecard only checks if the 'repository' field has own property, but this PR checks that the repo url exists, and that it includes the name of the node, such as https://github.com/Paul-Reed/ 'node-red-contrib-simpletime'.
    The url format is common amongst github, bitbucket & gitlab, and verifies accordingly.

  2. Bugs url
    This PR checks that the repository property exists, and that the url slug contain 'issues', which is a common format amongst github, bitbucket & gitlab, such as 'https://github.com/Paul-Reed/node-red-contrib-simpletime/ issues'

  3. Bugs email
    As an alternative to 2) above, users can provide a support email address, and this PR checks that the bugs email property exists, and that it passes a basic regex to check it's format.

Scoring changes
This PR proposes that the score is not accredited unless 2 conditions are met, the first being the repository link, so that users can see the code used and assure themselves that the node is safe to use, look at what changes have/are being made, and also to contribute to it's development.
The second condition as well as the above, is that either the bugs url OR the bugs email is provided, so that the author may be contactable, and issues could be recorded.

https://docs.npmjs.com/cli/v7/configuring-npm/package-json

Although the nodes are not named here, the PR has been tested against a number of nodes where current anomalies exist, and does correct the score.
Examples include where non-standard nested properties are being used, and where the repo url is used instead of a bugs url (and issues git disabled).
It has also been tested against nodes using github, bitbucket & gitlab.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 24, 2022

CLA Signed

The committers are authorized under a signed CLA.

@Paul-Reed
Copy link
Author

No update or comment?

@Paul-Reed
Copy link
Author

Almost 3 months old and still no response, so closing...

@Paul-Reed Paul-Reed closed this May 13, 2022
@knolleary
Copy link
Member

Hi Paul, sorry it hasn't been merged.

Closing it means it never will be, which would be a shame. Once 3.0 is out the way, we can get do some housekeeping across the other parts of the project and get this sorted.

@Steve-Mcl
Copy link

@Paul-Reed Paul, any chance you can restore the branch and reopen this?

It will get reviewed but tbh it wasn't on my radar. For whatever reason I didn't spot this but now I'm aware I'll make sure I pick it up.

Please don't be afraid to give us a nudge once V3 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants