@@ -135,7 +135,9 @@ Rails/ActiveRecordOverride:
135
135
Check for overriding Active Record methods instead of using
136
136
callbacks.
137
137
Enabled : true
138
+ Severity : warning
138
139
VersionAdded : ' 0.67'
140
+ VersionChanged : ' <<next>>'
139
141
Include :
140
142
- app/models/**/*.rb
141
143
@@ -336,9 +338,10 @@ Rails/DelegateAllowBlank:
336
338
Rails/DeprecatedActiveModelErrorsMethods :
337
339
Description : ' Avoid manipulating ActiveModel errors hash directly.'
338
340
Enabled : pending
341
+ Severity : warning
339
342
Safe : false
340
343
VersionAdded : ' 2.14'
341
- VersionChanged : ' 2.15 '
344
+ VersionChanged : ' <<next>> '
342
345
343
346
Rails/DotSeparatedKeys :
344
347
Description : ' Enforces the use of dot-separated keys instead of `:scope` options in `I18n` translation methods.'
@@ -349,12 +352,16 @@ Rails/DotSeparatedKeys:
349
352
Rails/DuplicateAssociation :
350
353
Description : " Don't repeat associations in a model."
351
354
Enabled : pending
355
+ Severity : warning
352
356
VersionAdded : ' 2.14'
357
+ VersionChanged : ' <<next>>'
353
358
354
359
Rails/DuplicateScope :
355
360
Description : ' Multiple scopes share this same where clause.'
356
361
Enabled : pending
362
+ Severity : warning
357
363
VersionAdded : ' 2.14'
364
+ VersionChanged : ' <<next>>'
358
365
359
366
Rails/DurationArithmetic :
360
367
Description : ' Do not use duration as arithmetic operand with `Time.current`.'
@@ -1047,7 +1054,9 @@ Rails/TopLevelHashWithIndifferentAccess:
1047
1054
Description : ' Identifies top-level `HashWithIndifferentAccess`.'
1048
1055
Reference : ' https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#top-level-hashwithindifferentaccess-is-soft-deprecated'
1049
1056
Enabled : pending
1057
+ Severity : warning
1050
1058
VersionAdded : ' 2.16'
1059
+ VersionChanged : ' <<next>>'
1051
1060
1052
1061
Rails/TransactionExitStatement :
1053
1062
Description : ' Avoid the usage of `return`, `break` and `throw` in transaction blocks.'
@@ -1077,7 +1086,9 @@ Rails/UniqueValidationWithoutIndex:
1077
1086
Rails/UnknownEnv :
1078
1087
Description : ' Use correct environment name.'
1079
1088
Enabled : true
1089
+ Severity : warning
1080
1090
VersionAdded : ' 0.51'
1091
+ VersionChanged : ' <<next>>'
1081
1092
Environments :
1082
1093
- development
1083
1094
- test
@@ -1132,7 +1143,9 @@ Rails/WhereNot:
1132
1143
Rails/WhereNotWithMultipleConditions :
1133
1144
Description : ' Do not use `where.not(...)` with multiple conditions.'
1134
1145
Enabled : ' pending'
1146
+ Severity : warning
1135
1147
VersionAdded : ' 2.17'
1148
+ VersionChanged : ' <<next>>'
1136
1149
1137
1150
# Accept `redirect_to(...) and return` and similar cases.
1138
1151
Style/AndOr :
0 commit comments