-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Architecture Decision Records (ADRs) for Event-Driven Archi… #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sarpel
wants to merge
2
commits into
main
Choose a base branch
from
v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,11 +8,11 @@ | |
| .clang_complete | ||
| .gcc-flags.json | ||
| Thumbs.db | ||
| docs/ | ||
| .serena/ | ||
| test/ | ||
| .github/ | ||
| .pio/ | ||
| .vscode/ | ||
| ino/ | ||
| build/ | ||
| *.ps1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Repository Guidelines | ||
|
|
||
| ## Project Structure & Module Organization | ||
| - `src/` contains firmware modules (`main.cpp`, `network.cpp`, `i2s_audio.cpp`, helpers like `config_validator.h`); keep new code modular and header-guarded. | ||
| - `tests/` stores Unity specs; mirror module names and prefer small, deterministic cases. | ||
| - `docs/` houses canonical references (DEVELOPER_GUIDE, OTA docs); revise alongside code so behaviour stays documented. | ||
| - `scripts/report_build_size.py` surfaces flash/RAM trends; `.pio/` is generated output and should remain untracked. | ||
| - Environments live in `platformio.ini`; derive new boards from `esp32dev` unless a unique profile is required. | ||
|
|
||
| ## Build, Test, and Development Commands | ||
| - `pio run -e esp32dev` compiles the default firmware; append `--target upload --upload-port COM8` for USB flashing. | ||
| - `pio run -e esp32dev-ota --target upload` deploys via OTA using the configured host. | ||
| - `pio device monitor --port COM8 --baud 115200` captures runtime logging; include relevant excerpts in reviews. | ||
| - `python scripts/report_build_size.py .pio/build/esp32dev/firmware.elf` reports size deltas after each build. | ||
|
|
||
| ## Coding Style & Naming Conventions | ||
| - Adopt 4-space indentation with K&R braces to match existing files. | ||
| - Classes stay PascalCase, functions camelCase, file-scope constants `kCamelCase`, and compile-time macros ALL_CAPS. | ||
| - Guard globals with `static`, favor stack buffers, and route diagnostics through the logging helpers. | ||
| - Validate configuration changes via `ConfigValidator` before use. | ||
|
|
||
| ## Testing Guidelines | ||
| - Run `pio test -e esp32dev` before pushing; mention the command in commit or PR notes. | ||
| - Place hardware-dependent checks under subfolders (e.g. `tests/hw/`) and document manual steps in the PR. | ||
| - Capture serial or OTA evidence when exercising new runtime paths. | ||
|
|
||
| ## Commit & Pull Request Guidelines | ||
| - Follow `type: imperative summary` (`feat: add adaptive buffer telemetry`, `fix: harden wifi reconnect`); keep commits small and focused. | ||
| - Reference issue IDs or doc updates in the body and list the build/test commands you executed. | ||
| - PRs should note target board, behavioural impact, and relevant logs or size reports. | ||
| - Sync code and docs in one reviewable change and confirm CI or local checks before requesting review. | ||
|
|
||
| ## Security & Configuration Tips | ||
| - Never commit credentials; keep `src/config.h` sanitized and describe overrides instead of storing secrets. | ||
| - Update `platformio.ini` comments and docs when OTA hosts or ports change. | ||
| - Audit new network paths with `ConfigValidator` to ensure bounds and defaults stay safe. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sabitlerin isimlendirme kuralında tutarsızlık var
Satır 18'de "file-scope constants
kCamelCase" yazıyor, ama projenin genel kodlama kılavuzunda sabitler içinUPPER_SNAKE_CASE(büyük harflerle ve alt çizgiyle) kullanılması gerektiği belirtiliyor. MeselaWIFI_SSID,I2S_SAMPLE_RATEgibi.Bunu düşünelim: Eğer bir takım arkadaşınız bu belgeyi okuyup
kMyConstantşeklinde sabit tanımlarsa, ama başka bir takım arkadaşınız kodlama kılavuzuna bakıpMY_CONSTANTşeklinde tanımlarsa, projede tutarsızlık oluşur. Bu da kodun okunmasını zorlaştırır.Düzeltme önerisi:
📝 Committable suggestion
🤖 Prompt for AI Agents