Update sniff to catch more redundant parentheses#2891
Conversation
📝 WalkthroughWalkthroughAdded new detection logic to identify redundant parentheses around simple comparisons within logical expressions in RedundantParenthesesSniff. Extended the existing simple comparison detector to reject expressions containing arithmetic operators. Relocated a rule from CodeAnalysis to Commenting category in the ruleset configuration. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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. Comment |
…edundant_parentheses Update sniff to catch more redundant parentheses
Summary by CodeRabbit
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.