Skip to content

Commit 68331d4

Browse files
committed
update ./.github/copilot-instructions.md
1 parent b319d43 commit 68331d4

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

.github/copilot-instructions.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,23 @@
2626
## Goals & Resources
2727
- **Goals:** Reference project goals in `GOALS.md` and request clarification if needed.
2828
- **Source Code Resources:**
29-
- Primary: [blackbox-log-viewer (BBE)](https://github.com/betaflight/blackbox-log-viewer/blob/master/src/flightlog.js)
30-
- Fallback: [blackbox_decode (blackbox-tools)](https://github.com/betaflight/blackbox-tools/blob/master/src/blackbox_decode.c)
29+
- Primary: [blackbox_decode (blackbox-tools)](https://github.com/betaflight/blackbox-tools/blob/master/src/blackbox_decode.c)
30+
- Fallback: [blackbox-log-viewer (BBE)](https://github.com/betaflight/blackbox-log-viewer/blob/master/src/flightlog.js)
31+
32+
## Data Validation
33+
- **REQUIRED:** The CSV output must precisely match the format and header order of blackbox_decode CSV files.
3134

3235
## Committing Rules
33-
- **Commit Conditions:** Only commit if there are no errors or warnings.
34-
- **Files to Commit:** Only `src/**/*.rs`, `Cargo.*`, `Readme.md`, and `.gitignore` — never `git add .` or `git add -A`.
35-
- **Pre-Commit Check:** Check `git diff --cached` before committing.
36+
- **Commit Conditions:** Only commit if:
37+
- `cargo clippy -- -D warnings` passes.
38+
- `cargo fmt --all -- --check` passes.
39+
- `cargo test --verbose` passes.
40+
- `cargo test --features=cli --verbose` passes.
41+
- **Files to Commit:**
42+
- Only `src/**/*.rs`, `Cargo.*`, `README.md`, `OVERVIEW.md` and `.gitignore` — never `git add .` or `git add -A`.
43+
- Follow `.gitignore`.
3644
- **User Confirmation:** Ask user before committing.
37-
- **Commit Message:** Use concise commit messages and descriptions.
45+
- **Commit Message:**
46+
- Check `git diff --cached` before committing.
47+
- Use concise commit messages and descriptions.
48+
- Use `feat:`, `fix:`, `docs:` where applicable.

0 commit comments

Comments
 (0)