Skip to content

Commit 0bff3d5

Browse files
committed
Include lib/rubocop/minitest/assert_offense.rb as a target for inspection
Since `RuboCop::Minitest::AssertOffense` module is a helper using Minitest's API, it should be inspected under the `Minitest` department.
1 parent 5b555d5 commit 0bff3d5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ AllCops:
1212
TargetRubyVersion: 2.7
1313
SuggestExtensions: false
1414

15+
Minitest:
16+
Include:
17+
- lib/rubocop/minitest/assert_offense.rb
18+
1519
InternalAffairs/NodeMatcherDirective:
1620
Enabled: false
1721

lib/rubocop/minitest/assert_offense.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def assert_no_corrections
167167

168168
# This is just here for a pretty diff if the source actually got changed
169169
new_source = @last_corrector.rewrite
170+
170171
assert_equal(@processed_source.buffer.source, new_source)
171172

172173
# There is an infinite loop if a corrector is present that did not make

0 commit comments

Comments
 (0)