MetaMask / module-lint

Analyzes one or more repos for divergence from a template repo.
1 stars 3 forks source link

Add function to load known MetaMask repos #22

Closed mcmire closed 10 months ago

mcmire commented 10 months ago

If a user passes a bare identifier on the command line, like this:

yarn dlx @metamask/module-lint utils

then we assume that they want to lint the MetaMask/utils repository. However we have to double-check that the repo they want to lint actually exists. They shouldn't be able to do this, for instance:

yarn dlx @metamask/module-lint asdlsdfl

The way we do this is by pulling the list of repositories that sit under the MetaMask GitHub organization. We exclude forks as well as archived repos. This list is cached for an hour so that future runs of the tool do not cause the rate limit for the GitHub API to be exceeded.


Related to #5.


See here for context on how this is eventually used:

socket-security[bot] commented 10 months ago

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
jest-mock-extended 3.0.5 None +1 144 kB marchaos
socket-security[bot] commented 10 months ago

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.