lib/statsd/instrument/rubocop.rb in statsd-instrument-3.1.1 vs lib/statsd/instrument/rubocop.rb in statsd-instrument-3.1.2

- old
+ new

@@ -1,37 +1,16 @@ # frozen_string_literal: true module RuboCop module Cop module StatsD - METRIC_METHODS = %i{ - increment - gauge - measure - set - histogram - distribution - key_value - } + METRIC_METHODS = [:increment, :gauge, :measure, :set, :histogram, :distribution, :key_value] - METAPROGRAMMING_METHODS = %i{ - statsd_measure - statsd_distribution - statsd_count_success - statsd_count_if - statsd_count - } + METAPROGRAMMING_METHODS = [:statsd_measure, :statsd_distribution, :statsd_count_success, :statsd_count_if, + :statsd_count,] - SINGLETON_CONFIGURATION_METHODS = %i{ - backend - backend= - prefix - prefix= - default_tags - default_tags= - default_sample_rate - default_sample_rate= - } + SINGLETON_CONFIGURATION_METHODS = [:backend, :"backend=", :prefix, :"prefix=", :default_tags, :"default_tags=", + :default_sample_rate, :"default_sample_rate=",] private def metaprogramming_method?(node) METAPROGRAMMING_METHODS.include?(node.method_name)