|
26 | 26 | ## Goals & Resources |
27 | 27 | - **Goals:** Reference project goals in `GOALS.md` and request clarification if needed. |
28 | 28 | - **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. |
31 | 34 |
|
32 | 35 | ## 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`. |
36 | 44 | - **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