Skip to content
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

Use RuboCop::AST::Token#regexp_dots? #10803

Merged
merged 1 commit into from Jul 11, 2022
Merged

Commits on Jul 11, 2022

  1. Use RuboCop::AST::Token#regexp_dots?

    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.
    koic committed Jul 11, 2022
    Copy the full SHA
    819a677 View commit details
    Browse the repository at this point in the history