Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This change aims to fix the error due to undefined methods of `RuboCop::Cop::Offence::PseudoSourceRange`. The `RuboCop::Cop::Offence::PseudoSourceRange` class emulates the `Parser::Source::Range` class in the `parser` gem. (see <https://github.com/whitequark/parser/blob/v2.7.1.5/lib/parser/source/range.rb>) The `RuboCop::Cop::Offence#location` attribute can have an instance of both these classes. So, these classes need to have the same interface and semantics for the usage in RuboCop. Co-authored-by: Bozhidar Batsov <bozhidar@batsov.com>
- Loading branch information
1 parent
2f5a210
commit 1a84099
Showing
4 changed files
with
77 additions
and
2 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
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
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