-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add option to include class name in DocBlock generation #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughA new feature was introduced to support including the class name in generated PHP DocBlock headers. This involved adding a boolean configuration option ( Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PHP-CS-Fixer
participant DocBlockHeaderFixer
participant DocBlockHeader
User->>PHP-CS-Fixer: Runs fixer with 'add_class_name' option
PHP-CS-Fixer->>DocBlockHeaderFixer: applyFix(file, tokens)
DocBlockHeaderFixer->>DocBlockHeaderFixer: getClassName(tokens, classIndex)
DocBlockHeaderFixer->>DocBlockHeader: buildDocBlock(annotations, className)
DocBlockHeader-->>DocBlockHeaderFixer: Returns DocBlock string (with class name if enabled)
DocBlockHeaderFixer-->>PHP-CS-Fixer: Updates tokens with new DocBlock
PHP-CS-Fixer-->>User: Outputs fixed file
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🔇 Additional comments (13)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Pull Request Test Coverage Report for Build 16812193506Details
💛 - Coveralls |
Summary by CodeRabbit
New Features
Documentation
Tests