Alphabetize and expand the TRUSTED_SCOPES list

Open Beginner friendly
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript
Domain
cli, security

Research direction

Open src/analyzers/typosquat.js and locate the TRUSTED_SCOPES Set. Review its current ordering and entries, then alphabetize the list and add the five scopes named in the acceptance criteria. Done means the list is alphabetized and includes @reduxjs, @react-navigation, @jest, @vitest, and @eslint.

Written by the indexing model from the issue text.

Description

enhancement good first issue help wanted

In src/analyzers/typosquat.js, we have a hardcoded Set called TRUSTED_SCOPES which prevents the typosquat analyzer from throwing false positives on official packages (like @types, @babel, etc.).

Currently, this list is a bit messy. It needs to be alphabetized for easier maintenance, and we should expand it to include a few more popular official scopes that developers commonly use.

Acceptance Criteria:

  • Alphabetize the TRUSTED_SCOPES list in src/analyzers/typosquat.js.
  • Add common missing frontend/backend scopes like @reduxjs, @react-navigation, @jest, @vitest, @eslint.
Dominant language
JavaScript
Stars
11
Forks
4
Avg merge
1d 17h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DhanushNehru/lockcheck

All issues in DhanushNehru/lockcheck

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.