Skip to content

copilot: instructions for apis to not use multiple bools - #5256

Merged
Chris Oo (chris-oo) merged 1 commit into
microsoft:mainfrom
chris-oo:copilot-bools
Nov 24, 2026
Merged

Chris Oo (chris-oo) merged 1 commit into
microsoft:mainfrom
chris-oo:copilot-bools

Conversation

@chris-oo

Copy link
Copy Markdown
Member

Add instructions to steer against functions with multiple booleans, that are hard to review.

@chris-oo
Chris Oo (chris-oo) requested a review from a team as a code owner November 23, 2026 23:39
Copilot AI balanced review requested due to automatic review settings November 23, 2026 23:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for this documentation-only update to the API design guidance.

No open issues 🎉

What changed in this PR

Adds API design guidance to OpenVMM’s Copilot instructions to make function and constructor calls easier to understand.

Changes:

  • Discourages multiple positional boolean parameters.
  • Recommends named constructors for distinct creation modes and descriptive enums for runtime mode selection.
  • Retains booleans for independent on/off properties and discourages unnecessary builder frameworks.
File Description
.github/​copilot-instructions.md Adds API design guidance; no runtime code changes.

Review effort: Balanced

@chris-oo Chris Oo (chris-oo) changed the title copilot: instructions for apis to not use multile bools copilot: instructions for apis to not use multiple bools Nov 24, 2026
@chris-oo
Chris Oo (chris-oo) merged commit efe0b08 into microsoft:main Nov 24, 2026
108 of 109 checks passed
@chris-oo
Chris Oo (chris-oo) deleted the copilot-bools branch November 24, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants