Commit fb10659
committed
Use
Follow-up to rubocop/rubocop-ast#377
This PR suppresses the following new offenses:
```console
$ bundle exec rubocop
(snip)
lib/rubocop/cop/rails/three_state_boolean_column.rb:48:43:
C: [Correctable] InternalAffairs/NodeTypeGroup: Use :any_def instead of individually listing group types.
def_node = node.each_ancestor(:def, :defs).first
^^^^^^^^^^^
301 files inspected, 1 offense detected, 1 offense autocorrectable
```RuboCop::AST::Node#any_def_type? method1 parent e6f1eda commit fb10659
File tree
2 files changed
+2
-2
lines changed- lib/rubocop/cop/rails
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
0 commit comments