# frozen_string_literal: true if defined?(Rails) && Rails.env.development? require 'rspec/core/rake_task' task :stats do require 'rails/code_statistics' [ [:unshift, 'Consumer', 'app/consumers'] ].each do |method, type, dir| ::STATS_DIRECTORIES.send(method, [type, dir]) ::CodeStatistics::TEST_TYPES << type if type.include? 'specs' end end end