Skip to content

Commit 966388c

Browse files
committed
Update copilot instructions
1 parent 74d3f1d commit 966388c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/copilot-instructions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@ Use fully qualified result types (`anyhow::Result`) instead of importing them.
1111
When writing tests, prefer simple assertion macros without custom error messages:
1212
- Use `assert_eq!(actual, expected);` instead of `assert_eq!(actual, expected, "custom message");`
1313
- Use `assert!(condition);` instead of `assert!(condition, "custom message");`
14+
15+
Tests are run with `just test`, not `cargo test`.
16+
17+
When you extract code in a function (or move things around) that function goes
18+
_below_ the calling function. A general goal is to be able to read linearly from
19+
top to bottom with the relevant context and main logic first. The code should be
20+
organised like a call stack. Of course that's not always possible, use best
21+
judgement to produce the clearest code organization.

0 commit comments

Comments
 (0)