open-code-review icon indicating copy to clipboard operation
open-code-review copied to clipboard

feat(allowlist): add Prisma schema review support

Open amh1k opened this issue 4 months ago • 2 comments

Description

Adds built-in Prisma schema review support.

OCR now recognizes .prisma files, does not exclude normal Prisma schema paths, and applies a dedicated Prisma review rule. The rule focuses on high-confidence relation integrity, migration safety, index/query behavior, provider compatibility, datasource/generator configuration, and security findings.

Type of Change

  • [ ] Bug fix (non-breaking change that fixes an issue)
  • [x] New feature (non-breaking change that adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Refactoring (no functional changes)
  • [x] Documentation update
  • [ ] CI / Build / Tooling

How Has This Been Tested?

  • [x] make test passes locally

  • [x] Manual testing (describe below)

  • Ran focused allowlist and rules tests successfully.

  • Ran make test successfully.

  • Ran make check successfully.

  • Added coverage for .prisma and .PRISMA extension recognition.

  • Added coverage confirming prisma/schema.prisma is not excluded.

  • Added rule-resolution coverage for root, nested, and uppercase Prisma paths.

Checklist

  • [x] My code follows the project's coding style (go fmt, go vet)
  • [x] I have performed a self-review of my code
  • [x] I have added tests that prove my fix is effective or my feature works
  • [x] New and existing unit tests pass locally with my changes
  • [x] I have updated the documentation accordingly (if applicable)
  • [x] I have signed the CLA

Related Issues

Part of #470

amh1k avatar Jul 29 '26 05:07 amh1k

✅ OpenCodeReview: No comments generated. Looks good to me.

github-actions[bot] avatar Jul 29 '26 05:07 github-actions[bot]

Merge conflicts

done

amh1k avatar Jul 29 '26 06:07 amh1k