You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
- Prefer imports over deeply-qualified module paths. As a rule of thumb, avoid using more than one module prefix inline (for example, prefer importing a type and using `TypeName` instead of writing `foo::bar::TypeName` repeatedly).
5
5
- Prefer high-level flow first: when practical, place local supporting definitions (for example helper structs, impls, functions, and type aliases) below their first use.
6
6
- Keep imports grouped and sorted to match existing file style.
7
+
- Avoid `maybe_` prefixes for optional variables; use neutral names and rely on type/context for optionality.
8
+
- Avoid `_ref` suffixes for local variable names; use descriptive neutral names instead.
7
9
8
10
## Change Communication
9
11
- Include a short rationale for each non-trivial code change.
@@ -12,3 +14,11 @@
12
14
- Avoid defensive code unless there is concrete evidence it is necessary.
13
15
- Avoid redundant logic and repeated calls; keep only the minimal behavior required for correctness.
14
16
- Do not add tests unless explicitly requested by the user.
17
+
18
+
## Control Flow Style
19
+
- Prefer exhaustive `match` statements for enum-based control flow instead of `if matches!(...)` shortcuts.
20
+
21
+
## Memory Promotion
22
+
- When a durable repository-specific preference is learned during a session, write it into this file as a concise bullet if it can help future sessions.
23
+
- Keep additions short, actionable, and scoped to coding behavior in this repository.
24
+
- Do not add temporary experiment details or one-off debugging notes.
0 commit comments