docs(doctrine): foreign code keeps its own style, limits stay strict in ours

This commit is contained in:
bchanot committed 2026-10-23 16:54:46 +02:00
1 parent 70e0f9ac41
commit 71d28f8616
5 files changed
+31 -10

No files matched your search

+7 -6
View File
@@ -57,12 +57,13 @@ TESTS PRESENT: yes / no
## NORMS TO APPLY (from CLAUDE.md)
- Max 25 lines per function (excluding comments)
- Max 80 chars per line
- Max 5 parameters per function
- Max 5 local variables per function
- No global variables
- Function comments when role is not obvious
The norms are the "Limits" and "Code style" sections of the global CLAUDE.md,
read them there. Function comments when role is not obvious.
Origin first: run `bash ~/.claude/lib/code-origin.sh` on the target repo.
`foreign` → refactor toward the file's own style (granularity, layout,
naming, idioms, "Foreign code: keep its style"), never toward the limits,
unless the dispatch prompt explicitly asks for the limits.
---