Commit 9748bdb
committed
Suppress RuboCop offenses
This commit suppresses the following RuboCop offenses:
```console
$ bundle exec rubocop
(snip)
Offenses:
lib/rubocop/cop/rails/not_null_column.rb:95:23: C: [Correctable] Style/MultipleComparison:
Avoid comparing a variable with multiple items in a conditional, use Array#include? instead.
return if type.value == :virtual || type.value == 'virtual'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/rubocop/cop/rails/not_null_column.rb:96:24: C: [Correctable] Style/MultipleComparison:
Avoid comparing a variable with multiple items in a conditional, use Array#include? instead.
return if (type.value == :text || type.value == 'text') && database == MYSQL
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
296 files inspected, 2 offenses detected, 2 offenses autocorrectable
```1 parent 048d2c7 commit 9748bdb
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
95 | | - | |
96 | | - | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
0 commit comments