feat(allowlist): add Prisma schema review support
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 testpasses locally -
[x] Manual testing (describe below)
-
Ran focused allowlist and rules tests successfully.
-
Ran
make testsuccessfully. -
Ran
make checksuccessfully. -
Added coverage for
.prismaand.PRISMAextension recognition. -
Added coverage confirming
prisma/schema.prismais 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
✅ OpenCodeReview: No comments generated. Looks good to me.
Merge conflicts
done