instaclick/object-calisthenics-sniffs
phpcs.xml configuration, allowing team-specific adjustments.getX() in controllers) may trigger false positives.phpcs --cache).composer require --dev instaclick/object-calisthenics-sniffs
phpcs.xml:
<config name="instaclick.ObjectCalisthenics" extension=".php">
<rule ref="ObjectCalisthenics"/>
</config>
Settings > PHP > Quality Tools > PHP_CodeSniffer.- name: Run Object Calisthenics Sniffs
run: vendor/bin/phpcs --standard=instaclick.ObjectCalisthenics src/
husky or pre-commit).getX() methods; use resource classes instead.| Step | Priority | Effort | Dependencies |
|---|---|---|---|
| Install & Configure | High | Low | Composer, CI access |
| Run Baseline Audit | High | Medium | Full codebase access |
| Pilot with Team | Medium | High | Developer feedback |
| CI Enforcement | Medium | Low | CI pipeline access |
| Pre-Commit Hooks | Low | Medium | Dev environment setup |
| Documentation | Low | Medium | None |
phpcs.xml to avoid team-specific overrides.deprecated attribute in config).phpcs.xml with comments.phpcs --cache).// @todo comments).| Risk | Impact | Mitigation |
|---|---|---|
| CI Pipeline Failures | Blocked merges | Start with warnings, then blocking. |
| Developer Burnout | Low morale, rule avoidance | Focus on high-impact rules first. |
| Over-Engineering | Unnecessary refactoring | Document "why" behind each rule. |
| Tooling Breakage | Sniffs misconfigured | Test in a staging environment. |
| Laravel Convention Clashes | False positives in models | Whitelist specific classes/rules. |
How can I help you explore Laravel packages today?