Files
oxc-project__oxc/.github/copilot-instructions.md
camc314 646c27cae3 docs(ci): discourage speculative compiler errors in copilot AI PR reviews (#26387)
Prompted by [this Copilot review comment](https://github.com/oxc-project/oxc/pull/26386#discussion_r3948410351), which incorrectly claimed a variant check moves a non-`Copy` field out of a borrow. The wildcard pattern does not bind or move the payload. All code is tested/checked in CI, so a compile error should fail there.
2026-09-07 09:53:14 +00:00

790 B

Copilot Review Instructions

When reviewing pull requests in this repository:

  • Do not guess or infer compiler errors. Only report them when supported by actual compiler diagnostics.
  • Treat files inside any fixtures directories as test data, not production code.
  • Fixture files may intentionally contain buggy, unsafe, or syntactically invalid code to validate parser/linter/transformer behavior.
  • Do not report normal code-quality or correctness issues for fixture files.
  • You may report a fixture issue only when the test data appears incorrect or mislabeled:
    • The folder or filename does not match what the test claims to cover.
    • The fixture content does not actually test the described case.
    • The fixture appears accidentally broken rather than intentionally crafted.