class RuboCop::Cop::StatsD::MeasureAsDistArgument

This cop will not autocorrect offenses.
–only StatsD/MeasureAsDistArgument
rubocop –require ‘bundle show statsd-instrument`/lib/statsd/instrument/rubocop.rb <br>
To run this cop on your codebase:
(or `statsd_distribution`) directly.
and `statsd_measure`. This argument is deprecated. Instead, you can use `StatsD.distribution`
This Rubocop will check for specifying the `as_dist: true` keyword argument on `StatsD.measure`

def on_send(node)

def on_send(node)
  if metric_method?(node) && node.method_name == :measure
    add_offense(node) if has_keyword_argument?(node, :as_dist)
  end
  if metaprogramming_method?(node) && node.method_name == :statsd_measure
    add_offense(node) if has_keyword_argument?(node, :as_dist)
  end
end