@@ -94,6 +94,9 @@ AllCops:
94
94
- graphql
95
95
rubocop-capybara :
96
96
- capybara
97
+ rubocop-factory_bot :
98
+ - factory_bot
99
+ - factory_bot_rails
97
100
ActiveSupportExtensionsEnabled : false
98
101
Bundler/DuplicatedGem :
99
102
Description : Checks for duplicate gem entries in Gemfile.
@@ -1726,6 +1729,8 @@ Lint/TopLevelReturnWithArgument:
1726
1729
Description : Detects top level return statements with argument.
1727
1730
Enabled : false
1728
1731
VersionAdded : ' 0.89'
1732
+ Exclude :
1733
+ - " /**/*.jb"
1729
1734
Lint/TrailingCommaInAttributeDeclaration :
1730
1735
Description : Checks for trailing commas in attribute declarations.
1731
1736
Enabled : false
@@ -1818,6 +1823,8 @@ Lint/UselessAssignment:
1818
1823
StyleGuide : " #underscore-unused-vars"
1819
1824
Enabled : true
1820
1825
VersionAdded : ' 0.11'
1826
+ VersionChanged : ' 1.51'
1827
+ SafeAutoCorrect : false
1821
1828
Lint/UselessElseWithoutRescue :
1822
1829
Description : Checks for useless `else` in `begin..end` without `rescue`.
1823
1830
Enabled : true
@@ -2226,7 +2233,9 @@ Security/CompoundHash:
2226
2233
Description : When overwriting Object#hash to combine values, prefer delegating to
2227
2234
Array#hash over writing a custom implementation.
2228
2235
Enabled : false
2236
+ Safe : false
2229
2237
VersionAdded : ' 1.28'
2238
+ VersionChanged : ' 1.51'
2230
2239
Security/Eval :
2231
2240
Description : The use of eval represents a serious security risk.
2232
2241
Enabled : true
@@ -2595,7 +2604,9 @@ Style/DataInheritance:
2595
2604
Description : Checks for inheritance from Data.define.
2596
2605
StyleGuide : " #no-extend-data-define"
2597
2606
Enabled : true
2607
+ SafeAutoCorrect : false
2598
2608
VersionAdded : ' 1.49'
2609
+ VersionChanged : ' 1.51'
2599
2610
Style/DateTime :
2600
2611
Description : Use Time over DateTime.
2601
2612
StyleGuide : " #date-time"
@@ -2754,6 +2765,10 @@ Style/EvenOdd:
2754
2765
Enabled : true
2755
2766
VersionAdded : ' 0.12'
2756
2767
VersionChanged : ' 0.29'
2768
+ Style/ExactRegexpMatch :
2769
+ Description : Checks for exact regexp match inside Regexp literals.
2770
+ Enabled : pending
2771
+ VersionAdded : ' 1.51'
2757
2772
Style/ExpandPathArguments :
2758
2773
Description : Use `expand_path(__dir__)` instead of `expand_path('..', __FILE__)`.
2759
2774
Enabled : false
@@ -3473,7 +3488,9 @@ Style/OpenStructUse:
3473
3488
Reference :
3474
3489
- https://docs.ruby-lang.org/en/3.0.0/OpenStruct.html#class-OpenStruct-label-Caveats
3475
3490
Enabled : true
3491
+ Safe : false
3476
3492
VersionAdded : ' 1.23'
3493
+ VersionChanged : ' 1.51'
3477
3494
Style/OperatorMethodCall :
3478
3495
Description : Checks for redundant dot before operator method call.
3479
3496
StyleGuide : " #operator-method-call"
0 commit comments