Skip to content

Commit d3945de

Browse files
committed
Fix test_prof RuboCop plugin
1 parent 69b48c7 commit d3945de

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Library/Homebrew/utils/rubocop.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
end
1111

1212
# TestProf is not able to detect what version of RuboCop we're using, so we need to manually import its cops.
13-
# For more details, see https://github.com/test-prof/test-prof/blob/v1.4.4/lib/test_prof/rubocop.rb
13+
# For more details, see https://github.com/test-prof/test-prof/blob/v1.5.0/lib/test_prof/rubocop.rb
1414
Warnings.ignore(/TestProf cops require RuboCop >= 0.51.0 to run/) do
1515
# All this file does is check the RuboCop version and require the files below.
1616
# If we don't require this now while the warning is ignored, we'll see the warning again later
@@ -19,9 +19,7 @@
1919

2020
# This is copied from test-prof/rubocop.rb, and is necessary because that file returns early if the RuboCop version
2121
# check isn't met.
22-
# Note: when the next version of TestProf is released, this will need to change to support RuboCop's plugin system.
23-
# See: https://github.com/test-prof/test-prof/pull/321
24-
require "test_prof/cops/inject"
22+
require "test_prof/cops/plugin"
2523
require "test_prof/cops/rspec/aggregate_examples"
2624
end
2725

0 commit comments

Comments
 (0)