factory_bot icon indicating copy to clipboard operation
factory_bot copied to clipboard

Lint: multiple factory definitions that make the same object

Open mike-burns opened this issue 1 year ago • 0 comments

Idea for a lint: complain if two factory definitions create the same object. This is a goal towards these ideals:

  • each factory definition is the minimum required to make the object
  • anything additional is added via traits

We'll need to consider factories that make e.g. Hash, String, Array -- either by letting the user turn off the linter for them, or by recognizing them as OK.

mike-burns avatar May 10 '24 16:05 mike-burns