Skip to content

Commit

Permalink
Suppress RuboCop's deprecation warning
Browse files Browse the repository at this point in the history
Follow up rubocop/rubocop#13244.

This PR suppresses the following RuboCop's deprecation warning:

```console
$ bundle exec rake
/Users/koic/src/github.com/rubocop/rubocop-md/test/markdown_assertions.rb:74:
warning: `Team.new` with cop classes is deprecated. Use `Team.mobilize` instead.
```
  • Loading branch information
koic committed Oct 16, 2024
1 parent e0161f5 commit 04c3a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/markdown_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def investigate(_cop, processed_source)
end

def _investigate(_cop, processed_source)
team = RuboCop::Cop::Team.new(registry.cops, configuration, raise_error: true, autocorrect: true)
team = RuboCop::Cop::Team.mobilize(registry.cops, configuration, raise_error: true, autocorrect: true)
report = team.investigate(processed_source)
@last_corrector = report.correctors.compact.first || RuboCop::Cop::Corrector.new(processed_source)
report.offenses
Expand Down

0 comments on commit 04c3a82

Please sign in to comment.