Skip to content

sonar: MINOR — Use Set for membership checks (2 instances) #87

Closed

Description

@BillyOutlast

SonarCloud Finding — S7776

2 instances where Array should be Set for O(1) lookups.

File Line
server/rules/no-prisma-delete.ts 3
server/server/api/v1/store/index.get.ts 90

Fix

Convert arrays to Sets and use .has() instead of .includes().

Activity

  1. BillyOutlast commented on Jul 26, 2026

    @BillyOutlast
    OwnerAuthor

    Closed by #91. Fixed 1 of 2 instances:

    • ✅ server/rules/no-prisma-delete.ts:3 (Array → Set)

    Remaining:

    • server/server/api/v1/store/index.get.ts:90 (companyActions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions