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
-**Provide references** when making analyses or recommendations. Base them on the correct branch or PR.
95
95
-**Highlight user-visible breaking changes and ripple effects**. Ask for confirmation that these were introduced intentionally.
96
96
-**Unused / dead code must be justified or removed**. This helps to keep the codebase clean, maintainable and readable.
97
-
-**Verify feature-flag names.** Every `WLED_ENABLE_*` / `WLED_DISABLE_*` flag must exactly match one of the names below — misspellings are silently ignored by the preprocessor (e.g. `WLED_IR_DISABLE` instead of `WLED_DISABLE_INFRARED`), causing silent build variations. Flag unrecognised names as likely typos and suggest the correct spelling.
-**C++ formatting available**: `clang-format` is installed but not in CI
101
98
- No automated linting is configured — match existing code style in files you edit.
102
99
103
100
Refer to `docs/cpp.instructions.md`, `docs/esp-idf.instructions.md` and `docs/web.instructions.md` for language-specific conventions, and `docs/cicd.instructions.md` for GitHub Actions workflows.
104
101
102
+
### Feature Flags
103
+
-**Verify feature-flag names.** Every `WLED_ENABLE_*` / `WLED_DISABLE_*` flag must exactly match one of the names below — misspellings are silently ignored by the preprocessor (e.g. `WLED_IR_DISABLE` instead of `WLED_DISABLE_INFRARED`), causing silent build variations. Flag unrecognised names as likely typos and suggest the correct spelling.
#ifdef WLED_DMX_ENABLED // wrong flag - initialization silently skipped
112
+
initDMX();
113
+
#endif
114
+
115
+
#ifdef WLED_ENABLE_DMX // correct flag - initialization performed only when the build supports DMX
116
+
initDMX();
117
+
#endif
118
+
```
119
+
<!-- HUMAN_ONLY_END -->
120
+
121
+
105
122
### Attribution for AI-generated code
106
123
Using AI-generated code can hide the source of the inspiration / knowledge / sources it used.
107
124
- Document attribution of inspiration / knowledge / sources used in the code, e.g. link to GitHub repositories or other websites describing the principles / algorithms used.
0 commit comments