Commit 7e21774
committed
Suppress RuboCop's offenses
Follow-up to rubocop/rubocop#13929
This commit suppresses the following RuboCop's offenses:
```console
$ bundle exec rubocop
(snip)
lib/rubocop/cop/mixin/active_record_helper.rb:106:40:
C: [Correctable] InternalAffairs/NodeTypeGroup: Use :call instead of individually listing group types.
send_node = node.each_ancestor(:send, :csend).first
^^^^^^^^^^^^^
lib/rubocop/cop/rails/pluck.rb:63:40:
C: [Correctable] InternalAffairs/NodeTypeGroup: Use :any_block instead of individually listing group types.
return if node.each_ancestor(:block, :numblock).any?
^^^^^^^^^^^^^^^^^
301 files inspected, 2 offenses detected, 2 offenses autocorrectable
```1 parent a250bfa commit 7e21774
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments