Sha256: 34d1373deacd911538a7b54f3bc7cf824346ec87cc2219688c4b2ebd6d849531
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true module RuboCop module FactoryBot # Contains node matchers for common FactoryBot DSL. module Language extend RuboCop::NodePattern::Macros METHODS = %i[ attributes_for attributes_for_list attributes_for_pair build build_list build_pair build_stubbed build_stubbed_list build_stubbed_pair create create_list create_pair generate generate_list null null_list null_pair ].to_set.freeze # @!method factory_bot?(node) def_node_matcher :factory_bot?, <<~PATTERN (const {nil? cbase} {:FactoryGirl :FactoryBot}) PATTERN end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-factory_bot-2.22.0 | lib/rubocop/factory_bot/language.rb |