Visitar URL original
CodeIgniter4/.github/copilot-instructions.md at develop · codeigniter4/CodeIgniter4 · GitHub
Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.62 KB

copilot-instructions.md

File metadata and controls

37 lines (31 loc) · 1.62 KB

Copilot Code Review Instructions

Repository-wide conventions, the target-branch compatibility policy, coding standards, and FrankenPHP Worker Mode requirements are defined in the root AGENTS.md. Apply that policy in every review; this file covers review behavior only.

Review priorities

Prioritize actionable findings involving:

  • incorrect behavior or an unhandled edge case;
  • backward compatibility;
  • security, input validation, and context-appropriate output escaping;
  • request-specific state leaking through globals, static properties, or shared services, including under Worker Mode where one process serves many requests;
  • differences between supported database drivers (MySQLi, PostgreSQL, SQLite3, SQLSRV, OCI8);
  • missing regression tests, user-guide changes, changelog entries, or upgrade instructions.

Review behavior

  • Determine the PR base branch and apply the compatibility policy from AGENTS.md. When it is not visible, read it from the title prefix and the labels as AGENTS.md describes, and otherwise assume develop and state that assumption.
  • Before reporting a compatibility break, confirm the symbol exists in the latest tagged release. A symbol introduced on the base branch since that release is unreleased and may change freely, as AGENTS.md describes.
  • Do not report a PHPStan suppression or baseline entry covered by the exceptions in AGENTS.md, or a missing reset of state that CIUnitTestCase::tearDown() already restores.
  • Do not report formatting-only issues already enforced by PHP-CS-Fixer.
  • Every finding should identify a concrete failure scenario and the affected code.