From 08529a744e1f2265a0fe1a0567e7c9a1bdbb4c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20M=C3=B6hle?= <91616163+softhack007@users.noreply.github.com> Date: Tue, 7 Apr 2026 19:36:33 +0200 Subject: [PATCH] Add code style summary to agent build instructions Added basic style guidelines for C++, Web UI, and CI/CD workflows. --- .github/agent-build.instructions.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/agent-build.instructions.md b/.github/agent-build.instructions.md index 4c0e2ded..e8ac44ee 100644 --- a/.github/agent-build.instructions.md +++ b/.github/agent-build.instructions.md @@ -20,6 +20,11 @@ Use these timeout values when running builds: ## Development Workflow +### Code Style Summary +- **C++** files in `wled00/` and `usermods/`: 2-space indentation (no tabs), camelCase functions/variables, PascalCase classes, UPPER_CASE macros. No C++ exceptions — use return codes and debug macros. +- **Web UI** files in `wled00/data`: indent HTML and JavaScript with tabs, CSS with tabs. +- **CI/CD workflows** in `.github/workflows`: 2-space indentation, descriptive `name:` on every workflow/job/step. Third-party actions must be pinned to a specific version tag — branch pins such as @main or @master are not allowed. SHA pinning recommended. + ### Web UI Changes 1. Edit files in `wled00/data/`