Releases: rubocop/rubocop-factory_bot
Releases · rubocop/rubocop-factory_bot
RuboCop FactoryBot v2.26.1
- Bump RuboCop requirement to +1.61. (@ydah)
RuboCop FactoryBot v2.26.0
- Fix a false positive for
FactoryBot/AssociationStyle
when using nested factories with traits. (@jaydorsey) - Support
AutoCorrect: contextual
option for LSP. (@ydah)
RuboCop factory_bot v2.25.1
What's Changed
- Fix a false positive for
FactoryBot/CreateList
when create call does have method calls and repeat multiple times with other argument. (@ydah) - Fix an error occurred for
FactoryBot/IdSequence
whensequence
with non-symbol argument or without argument. (@ydah)
Full Changelog: v2.25.0...v2.25.1
RuboCop factory_bot v2.25.0
What's Changed
- Add new
FactoryBot/ExcessiveCreateList
cop. (@ddieulivol) - Fix a false positive for
FactoryBot/FactoryNameStyle
when namespaced models. (@ydah) - Fix a false positive for
FactoryBot/ConsistentParenthesesStyle
when hash pinning. (@ydah)
Full Changelog: v2.24.0...v2.25.0
RuboCop factory_bot v2.24.0
What's Changed
- Fix
FactoryBot/AssociationStyle
cop to ignore explicit associations withstrategy: :build
. (@pirj) - Change
FactoryBot/CreateList
so that it is not an offense if not repeated multiple times. (@ydah) - Fix a false positive for
FactoryBot/AssociationStyle
whenassociation
is called in trait block and column name is keyword. (@ydah) - Fix a false positive for
FactoryBot/AssociationStyle
whenEnforcedStyle: Explicit
and using trait within trait. (@ydah) - Change
FactoryBot/AssociationStyle
,FactoryBot/AttributeDefinedStatically
,FactoryBot/CreateList
andFactoryBot/FactoryClassName
to work with minitest style directory. (@ydah) - Add
FactoryBot/IdSequence
cop. (@owst)
Full Changelog: v2.23.1...v2.24.0
RuboCop factory_bot v2.23.1
- Fix
FactoryBot/AssociationStyle
cop for a blocklessfactory
. (@pirj)
RuboCop factory_bot v2.23.0 (Thank you RubyKaigi 2023 Edition🏯)
- Add
FactoryBot/FactoryAssociationWithStrategy
cop. (@morissetcl) - Add
FactoryBot/RedundantFactoryOption
cop. (@r7kamura) - Add
FactoryBot/AssociationStyle
cop. (@r7kamura) - Add
ExplicitOnly
configuration option toFactoryBot/ConsistentParenthesesStyle
,FactoryBot/CreateList
andFactoryBot/FactoryNameStyle
. (@ydah) - Mark
FactoryBot/CreateList
asSafeAutoCorrect: false
. (@r7kamura) - Change
FactoryBot/CreateList
so that it considerstimes.map
. (@r7kamura) - Change
FactoryBot/CreateList
so that it checks same factory calls in an Array. (@r7kamura)
RuboCop factory_bot v2.22.0
- Extracted from
rubocop-rspec
into a separate repository for easier use with Minitest/Cucumber. (@ydah)