Skip to content

Commit

Permalink
Updated coderabbit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinyanakiev committed Dec 2, 2024
1 parent 7340096 commit e6d34ce
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,22 @@ reviews:
Review the TypeScript/JavaScript code for NestJS best practices, dependency injection, module structure, and potential bugs.
**Context Files (Do Not Review):**
- `docs/design.md`
- `src/core/error-handling/graphql.exception.filter.ts`
- `src/core/error-handling/http.exception.filter.ts`
- `src/core/error-handling/rest.error.response.ts`
- `src/core/error-handling/unhandled.exception.filter.ts`
- `docs/Design.md` - Design overview of the project
- `docs/Pagination.md` - Pagination design overview
- `docs/Developing.md` - Development setup overview
- `docs/graphql-typeorm-usage.md` - overview of GraphQL and TypeORM usage and how they are used together with NestJS in the project
- `docs/database-definitions.md` - guidelines for creating TypeORM entity defnitions
- `src/core/error-handling/graphql.exception.filter.ts` - GraphQL error handling
- `src/core/error-handling/http.exception.filter.ts` - HTTP error handling
- `src/core/error-handling/rest.error.response.ts` - REST error response
- `src/core/error-handling/unhandled.exception.filter.ts` - Global exception handler
**Guidelines:**
- Our project uses global exception handlers (`UnhandledExceptionFilter`), so avoid suggesting additional `try/catch` blocks unless handling specific cases.
- Use NestJS latest documentation from `https://docs.nestjs.com/` for reference on NestJS best practices.
- Use TypeORM latest documentation from `https://typeorm.io/` for reference on TypeORM best practices.
- Refer to the design overview in the context files for better understanding.
- path: "src/**/*.spec.ts"
instructions: "Review the unit tests, ensuring proper NestJS testing techniques (using TestingModule, mocks, etc.). Check for completeness and coverage."
- path: "manifests/**/*.{yaml,yml}"
Expand Down

0 comments on commit e6d34ce

Please sign in to comment.