DeGraciaMathieu/cursor-mdc-rules

Cursor Rules for writing clear, readable, and maintainable PHP code

4Stars on the repository
13Mods indexed here, across every type
11mo agoLast push, which is what freshness is scored on
noneNo LICENSE: all rights reserved, so bodies are not copied

DeGraciaMathieu/cursor-mdc-rules

Cursor rule

Avoid writing complex conditional expressions with multiple combined conditions. Encapsulate the logic into clearly named methods or objects to express intent rather than implementation details.

4 11mo ago A 295 tokens

DeGraciaMathieu/cursor-mdc-rules

Cursor rule

Comments should provide context or clarifications that the code alone cannot convey. They are not a substitute for clear code, but a complement to explain why something is done or what external constraints apply.

4 11mo ago A 399 tokens

demeter_law

06

DeGraciaMathieu/cursor-mdc-rules

Cursor rule

A class should only interact with its direct dependencies. It must not reach through objects to access their internals or depend on transitive dependencies.

4 11mo ago A 321 tokens

DeGraciaMathieu/cursor-mdc-rules

Cursor rule

A method should limit the number of arguments it accepts. If a method has more than three arguments, consider grouping them into a single parameter object to reduce complexity and improve clarity.

4 11mo ago A 381 tokens