Skip to content

Commit

Permalink
Merge pull request #40 from koic/suppress_deprecation_warning
Browse files Browse the repository at this point in the history
Suppress RuboCop's deprecation warning
  • Loading branch information
palkan authored Oct 17, 2024
2 parents e0161f5 + 04c3a82 commit a2584b7
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 a2584b7

Please sign in to comment.