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
Add regexp/no-extra-lookaround-assertions
rule
#482
Add regexp/no-extra-lookaround-assertions
rule
#482
Conversation
How about |
The description of no-useless-assertions says:
The new rule don't report always accept/reject patterns, so I think the rules have different goals. |
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
@RunDevelopment Thank you for the your review! |
Thank you @ota-meshi. I think the rule is implemented correctly, but I think the name/message might be a little confusing. The name "no useless lookaround assertions" and the message "This assertion is useless." might make it seem like reported assertions can be removed. E.g. Maybe we could change the message to something like "This assertion is useless and can be inlined" or "This assertion is useless and can be converted into a group"? If we go with those messages, then we should probably also update the docs to use this language too. What do you think? |
I think the message you suggested is good! I will change it to use that message. Do you have other good ideas for rule name? |
That is a really good idea! Let's go with that. |
regexp/no-useless-lookaround-assertions
ruleregexp/no-extra-lookaround-assertions
rule
I have changed this PR. Could you please check again? |
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.
Thank you @ota-meshi!
close #481