Skip to content

Commit

Permalink
[.github] Update copilot instructions. (#9837)
Browse files Browse the repository at this point in the history
Copilot has a habit of making changes you didn't ask for.

Add some instructions to make it only do changes if asked,
in as the "Nullable Reference Types" section.
  • Loading branch information
dellis1972 authored Feb 25, 2025
1 parent 48b1105 commit c237b3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This is the main branch targeting .NET 10.

When opting C# code into nullable reference types:

* Only make the following changes when asked to do so.

* Add `#nullable enable` at the top of the file.

* Don't *ever* use `!` to handle `null`!
Expand Down

0 comments on commit c237b3f

Please sign in to comment.