79738090

Date: 2025-08-17 20:39:08
Score: 0.5
Natty:
Report link

The issue was a rubocop control comment recently added in test/factories.rb:

FactoryBot.define do # rubocop:disable Metrics/BlockLength

Removing the comment lets the generator match FactoryBot.define correctly again. Wrapping the define statement in rubocop control comments on different lines works as a short term solution until we split our many factories out into different files:

# rubocop:disable Metrics/BlockLength
FactoryBot.define do
  # rubocop:enable Metrics/BlockLength
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: NGobin