config/default.yml in rubocop-factory_bot-2.24.0 vs config/default.yml in rubocop-factory_bot-2.25.0
- old
+ new
@@ -12,11 +12,11 @@
FactoryBot/AssociationStyle:
Description: Use a consistent style to define associations.
Enabled: pending
Safe: false
VersionAdded: '2.23'
- VersionChanged: "<<next>>"
+ VersionChanged: '2.24'
EnforcedStyle: implicit
SupportedStyles:
- explicit
- implicit
NonImplicitAssociationMethodNames: ~
@@ -24,11 +24,11 @@
FactoryBot/AttributeDefinedStatically:
Description: Always declare attribute values as blocks.
Enabled: true
VersionAdded: '1.28'
- VersionChanged: "<<next>>"
+ VersionChanged: '2.24'
Reference: https://www.rubydoc.info/gems/rubocop-factory_bot/RuboCop/Cop/FactoryBot/AttributeDefinedStatically
FactoryBot/ConsistentParenthesesStyle:
Description: Use a consistent style for parentheses in factory_bot calls.
Enabled: pending
@@ -59,13 +59,25 @@
- create_list
- n_times
ExplicitOnly: false
SafeAutoCorrect: false
VersionAdded: '1.25'
- VersionChanged: "<<next>>"
+ VersionChanged: '2.24'
Reference: https://www.rubydoc.info/gems/rubocop-factory_bot/RuboCop/Cop/FactoryBot/CreateList
+FactoryBot/ExcessiveCreateList:
+ Description: Check for excessive model creation in a list.
+ Enabled: pending
+ Include:
+ - "**/*_spec.rb"
+ - "**/spec/**/*"
+ - "**/test/**/*"
+ - "**/features/support/factories/**/*.rb"
+ MaxAmount: 10
+ VersionAdded: '2.25'
+ Reference: https://www.rubydoc.info/gems/rubocop-factory_bot/RuboCop/Cop/FactoryBot/ExcessiveCreateList
+
FactoryBot/FactoryAssociationWithStrategy:
Description: Use definition in factory association instead of hard coding a strategy.
Enabled: pending
Include:
- "**/*_spec.rb"
@@ -78,11 +90,11 @@
FactoryBot/FactoryClassName:
Description: Use string value when setting the class attribute explicitly.
Enabled: true
VersionAdded: '1.37'
- VersionChanged: "<<next>>"
+ VersionChanged: '2.24'
Reference: https://www.rubydoc.info/gems/rubocop-factory_bot/RuboCop/Cop/FactoryBot/FactoryClassName
FactoryBot/FactoryNameStyle:
Description: Checks for name style for argument of FactoryBot::Syntax::Methods.
Enabled: pending
@@ -101,10 +113,10 @@
Reference: https://www.rubydoc.info/gems/rubocop-factory_bot/RuboCop/Cop/FactoryBot/FactoryNameStyle
FactoryBot/IdSequence:
Description: Do not create a FactoryBot sequence for an id column.
Enabled: pending
- VersionAdded: "<<next>>"
+ VersionAdded: '2.24'
Reference: https://www.rubydoc.info/gems/rubocop-factory_bot/RuboCop/Cop/FactoryBot/IdSequence
FactoryBot/RedundantFactoryOption:
Description: Checks for redundant `factory` option.
Enabled: pending