-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces use of Cop::investigate in favour of on_new_investigation
Replacing the deprecated Cop base class with Cop::Base means that we need to avoid investigate. Following the example of comment processing Cops including with rubocop, we should instead use on_new_investigation. The expect_offense test helper also needed reworking. Cop::Base doesn't allow access to the offenses detected. Those should come from the InvestigationReport from the Commissioner instance that invokes the investigation (via Commissioner::investigate).
- Loading branch information
1 parent
0ed1b5f
commit 45186bc
Showing
2 changed files
with
7 additions
and
7 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