Files
main/rules-v0/github-cursorrules-prompt-file-instructions/function-length-and-responsibility.mdc
2025-02-27 00:04:07 +05:30

7 lines
419 B
Plaintext

---
description: This rule enforces the single responsibility principle, ensuring functions are short and focused.
globs: **/*.*
---
- Write short functions that only do one thing.
- Follow the single responsibility principle (SRP), which means that a function should have one purpose and perform it effectively.
- If a function becomes too long or complex, consider breaking it into smaller, more manageable functions.