-
-
Notifications
You must be signed in to change notification settings - Fork 55
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 ragexp_dot?
method to RuboCop::AST::Token
.
#235
Conversation
Follow up #rubocop/rubocop#10798. This PR adds `ragexp_dot?` method to `RuboCop::AST::Token`.
You've got a typo in the commit message - ragex -> regex. |
Thanks @koic . |
Released 1.19.0, thanks! |
@marcandre @bbatsov Thank you! |
|
True. Should we rename it? We could add an alias for compatibility, but I'm fine with releasing an updated version with just the corrected name. |
Yeah, I think it's widely not used yet, so I think it's an acceptable breaking change. I will open a PR. |
…xp_dots` Follow up rubocop#235 (comment). This PR renames `RuboCop::AST::Token#regexp_dot?` to `RuboCop::AST::Token#regexp_dots` It's been determined that it doesn't need to be an alias because it's the API that has just been released and isn't widespread.
…xp_dots` Follow up rubocop#235 (comment). This PR renames `RuboCop::AST::Token#regexp_dot?` to `RuboCop::AST::Token#regexp_dots`. It's been determined that it doesn't need to be an alias because it's the API that has just been released and isn't widespread.
I've just opened #236. |
…xp_dots` Follow up #235 (comment). This PR renames `RuboCop::AST::Token#regexp_dot?` to `RuboCop::AST::Token#regexp_dots`. It's been determined that it doesn't need to be an alias because it's the API that has just been released and isn't widespread.
Follow up rubocop/rubocop-ast#235. This PR uses `RuboCop::AST::Token#regexp_dots?` instead of a custom logic. Also, `range_nodes` is only needed for autocorrection, so it's not needed most of the time. Therefore, the timing to calculate `range_nodes` is adjusted from `on_new_investigation` to memoization in the autocorrection logic by this PR.
Follow up #rubocop/rubocop#10798.
This PR adds
ragexp_dot?
method toRuboCop::AST::Token
.