[Concept,01/16] CLAUDE.md: Add note about test-declaration placement

Message ID 20251227204318.886983-2-sjg@u-boot.org
State New
Headers
Series fs: ext4l: Complete read-only filesystem support (Part I) |

Commit Message

Simon Glass Dec. 27, 2025, 8:42 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Test declarations should immediately follow the closing brace of the
function they declare, with no blank line in between.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
---

 CLAUDE.md | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/CLAUDE.md b/CLAUDE.md
index ca0571ecef8..b2590b17fab 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -72,3 +72,5 @@  pyt <test_name>
 - Keep commit messages concise - focus on the key change and essential details only
 - Code should be formatted to 80 columns and not have trailing spaces
 - Remember to use Co-developed-by instead of Co-Authored-By in commits
+- Test declarations (e.g., UNIT_TEST macro) should immediately follow the
+  closing } of the function they declare, with no blank line in between