class RuboCop::Cop::StatsD::SingletonConfiguration

This Rubocop will check for calls to StatsD singleton configuration methods (e.g. `StatsD.prefix`). The library is moving away from having just a single singleton client, so these methods are deprecated.

Use the following Rubocop invocation to check your project's codebase:

rubocop --require `bundle show statsd-instrument`/lib/statsd/instrument/rubocop.rb \
  --only StatsD/SingletonConfiguration

This cop will not autocorrect violations. There are several ways of fixing the violation.

Constants

MSG

Public Instance Methods

on_send(node) click to toggle source
# File lib/statsd/instrument/rubocop/singleton_configuration.rb, line 45
def on_send(node)
  if singleton_configuration_method?(node)
    add_offense(node)
  end
end