Skip to content

Commit 7407804

Browse files
committed
AI rules update
1 parent 2c91f21 commit 7407804

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.clinerules

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66

77
## Code Changes
88

9-
- Ensure the code you have provided is complete
9+
- Ensure the code you have provided is complete (compiles and tests pass)
1010
- Ensure the project is formatted (cargo fmt --all)
1111
- Ensure that any clippy warnings are addressed (cargo clippy -- -D warnings)
12-
- When writing an if/else clause, prefer putting the clause with most of the code in the else part to keep the whole conditional more readable
13-
- Avoid arrowized code when possible
14-
- Avoid renaming variables unless explicitly asked to do so
1512

1613
## Security Practices
1714

@@ -21,6 +18,10 @@
2118

2219
## Misc
2320

21+
- Avoid making any formatting changes when not explicitly asked to do so
22+
- Avoid renaming variables unless explicitly asked to do so
23+
- When writing an if/else clause, prefer putting the clause with most of the code in the else part to keep the whole conditional more readable
24+
- Avoid arrowized code whenever possible
2425
- When providing a solution, give me a score on a scale of 1-10 about how confident you are in the solution
2526

2627
## Project-Specific Patterns

0 commit comments

Comments
 (0)