docs: add root cause fix principle to coding standards
- add "no whack-a-mole" rule in CLAUDE.md to enforce fixing root causes over symptoms - add equivalent root cause principle in docs/DEV.md coding standards section
This commit is contained in:
@@ -7,3 +7,7 @@ After every code change, update the relevant documentation. This includes:
|
||||
- co-located `README.md` files in `src/core/<module>/` and `src/features/<feature>/` for module-level behaviour
|
||||
|
||||
No task is complete until all impacted documentation is up to date.
|
||||
|
||||
## No whack-a-mole
|
||||
|
||||
Always fix the **root cause**, never the symptoms. If the same type of error appears in a second file after fixing the first, that's the signal the real fix is elsewhere — trace the import or call chain to understand why this code is reached in this context, then fix at that point.
|
||||
|
||||
Reference in New Issue
Block a user