Skip to content

Releases: rubocop/rubocop-factory_bot

RuboCop factory_bot v2.25.1

08 Jan 07:17
8c1e9ae
Compare
Choose a tag to compare

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 when sequence with non-symbol argument or without argument. (@ydah)

Full Changelog: v2.25.0...v2.25.1

RuboCop factory_bot v2.25.0

04 Jan 13:42
d22d86b
Compare
Choose a tag to compare

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

18 Sep 06:59
8deeb64
Compare
Choose a tag to compare

What's Changed

  • Fix FactoryBot/AssociationStyle cop to ignore explicit associations with strategy: :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 when association is called in trait block and column name is keyword. (@ydah)
  • Fix a false positive for FactoryBot/AssociationStyle when EnforcedStyle: Explicit and using trait within trait. (@ydah)
  • Change FactoryBot/AssociationStyle, FactoryBot/AttributeDefinedStatically, FactoryBot/CreateList and FactoryBot/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

16 May 01:34
7dab265
Compare
Choose a tag to compare
  • Fix FactoryBot/AssociationStyle cop for a blockless factory. (@pirj)

RuboCop factory_bot v2.23.0 (Thank you RubyKaigi 2023 Edition🏯)

15 May 07:33
963e237
Compare
Choose a tag to compare
  • Add FactoryBot/FactoryAssociationWithStrategy cop. (@morissetcl)
  • Add FactoryBot/RedundantFactoryOption cop. (@r7kamura)
  • Add FactoryBot/AssociationStyle cop. (@r7kamura)
  • Add ExplicitOnly configuration option to FactoryBot/ConsistentParenthesesStyle, FactoryBot/CreateList and FactoryBot/FactoryNameStyle. (@ydah)
  • Mark FactoryBot/CreateList as SafeAutoCorrect: false. (@r7kamura)
  • Change FactoryBot/CreateList so that it considers times.map. (@r7kamura)
  • Change FactoryBot/CreateList so that it checks same factory calls in an Array. (@r7kamura)

RuboCop factory_bot v2.22.0

05 May 00:00
a509ed7
Compare
Choose a tag to compare
  • Extracted from rubocop-rspec into a separate repository for easier use with Minitest/Cucumber. (@ydah)