Sitelet https://github.com/microsoft/testfx/commit/eb5aa3cf44cf09aed76fc809534aefbb824566dc
Skip to content

Commit eb5aa3c

Browse files
authored
Disallow new init-only APIs via Copilot instructions
1 parent 3530a4e commit eb5aa3c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/copilot-instructions.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ When making change to resource files, you MUST:
3131
- Add a corresponding entry in the resource file (`.resx`).
3232
- NEVER manually modify `*.xlf` files. Instead, build the project to automatically generate the corresponding `*.xlf` files.
3333

34+
## Public API guidelines
35+
36+
- Public API for MSTest and Microsoft.Testing.Platform should **never** use `init` accessors.
37+
- Exception: Existing APIs in Microsoft.Testing.Platform, because changing them right now is a breaking change. But we shouldn't introduce **new** APIs using init accessors.
38+
- IMPORTANT: Make sure to apply this rule strictly both during PR review and when working on code changes.
39+
3440
## Testing Guidelines
3541

3642
- Tests for MTP and MSTest analyzers MUST use MSTest.

0 commit comments

Comments
 (0)