Skip to content

Commit 5f8d27a

Browse files
authored
Have copilot handle formatting better
Updated guidelines for committing changes and testing. dotnet format doesn't allow for formatting a single file. If copilot tries to format, it'll try the file, then the solution, and then the project resulting in lots of formatting. This will enable us to fix formatting but not mess up the diffs.
1 parent 564081f commit 5f8d27a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Coding Style and Changes:
55
- When generating code, run `dotnet format` to ensure uniform formatting.
66
- Prefer using file-based namespaces for new code.
77
- Do not allow unused `using` directives to be committed.
8+
- commit your changes, and then format them.
9+
- add the format commit SHA to the .git-blame-ignore-revs file so that the commit doesn't dirty git blame in the future
810

911
Testing:
1012
- Large changes should always include test changes.

0 commit comments

Comments
 (0)