проектdocs/Agents/rules/quality-code-review.md
quality-code-review.md
Обновлён 1 апр. 2026 г., 12:41 · 0 комментариев
title: Code Review Standards impact: HIGH impactDescription: Catches issues before they reach production tags: quality, review, standards
Паспорт документа
- Статус документа: living standard
- Актуально на: 28 марта 2026 года
- Владелец: backend/platform-команда
- Пересмотр: при изменении инженерной практики, CI/CD, архитектурных правил или локального workflow
- Область применения: внутренние rule/reference-card документы для инженерной команды
- Связанные документы:
Code Review Standards
Impact: HIGH
What to check during review:
- Security: No exposed secrets, proper input validation, authorization checks
- Performance: No N+1 queries, proper use of
select, caching where appropriate - Server Components: No unnecessary
"use client"directives - Data layer: Prisma queries use
select, read operations use replica - Error handling: Proper exceptions, descriptive messages
- Types: No
as any, properimport typeusage - Size: PR is under 500 lines and focused on one change
- Tests: New code has tests, existing tests still pass
- i18n: All UI strings are in translation files
Red flags to block PR:
as anyanywhere in the codeinclude: { relation: true }in Prisma queries- Direct database access from Next.js
"use client"on a page that could be a Server Component- Missing input validation
- Secrets or tokens in code
- Business logic in controllers