-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Batch #2 - 11. No .builder() API: No classes should have a .builder() #4589
Conversation
<module name="MethodName"/> | ||
<module name="MethodName"> | ||
<!-- Use default MethodName but block the use of 'builder' as method name --> | ||
<property name="format" value="(?=^[a-z][a-zA-Z0-9]*$)(?!^[b][uU][iI][lL][dD][eE][rR]$)"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are mode specifiers available? It's easier to read ((?i)builder)$
, imho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is supported. I have tested and worked.
Thank you for it! 👍 Updated now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- * | ||
- * @return A new {@link HttpPipelineBuilder} to create a HttpPipeline from. | ||
*/ | ||
public HttpPipelineBuilder() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please fix up the javadoc here. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on it
add MethodName rule to disable builder as a method name and update isssues
You might want to see checkstyle.xml for MethodName rule update. Then everything else is fixing what we had already with a builder()