lib/cranky/factory.rb
def lint!(factory_names: nil, traits: false)
      factories_to_lint = Array(factory_names || self.factory_names)
      strategy = traits ? :factory_and_traits : :factory
      Linter.new(self, factories_to_lint, strategy).lint!
    end
def lint!(factory_names: nil, traits: false)
      factories_to_lint = Array(factory_names || self.factory_names)
      strategy = traits ? :factory_and_traits : :factory
      Linter.new(self, factories_to_lint, strategy).lint!
    end
Look for errors in factories and (optionally) their traits.
 Parameters:
 factory_names - which factories to lint; omit for all factories
 options:
   traits : true - to lint traits as well as factories