Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#10803](https://github.com/rubocop/rubocop/pull/10803): Require RuboCop AST 1.9.1 or higher. ([@koic][]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters