10 lines
531 B
Markdown
10 lines
531 B
Markdown
---
|
|
globs: "**/*.php"
|
|
description: Comments should only be used for complex logic, business rules,
|
|
non-obvious decisions, or explanations of why something is done (not what is
|
|
done). Code should be readable without comments. Remove all unnecessary
|
|
comments that don't add value to understanding the code.
|
|
alwaysApply: true
|
|
---
|
|
|
|
Only add comments when they provide essential clarification that the code itself cannot convey. Avoid redundant or obvious comments; let code be self-documenting through clear naming and structure. |