Sha256: 14076c0df3b5940ef068436765009e49bcea05934aef6d9befca649ae8aeaa33
Contents?: true
Size: 469 Bytes
Versions: 14
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module FactoryBot # Handles `ExplicitOnly` configuration parameters. module ConfigurableExplicitOnly include RuboCop::FactoryBot::Language def factory_call?(node) return factory_bot?(node) if explicit_only? factory_bot?(node) || node.nil? end def explicit_only? cop_config['ExplicitOnly'] end end end end end
Version data entries
14 entries across 14 versions & 5 rubygems