lib/statsd/instrument/rubocop/metaprogramming_positional_arguments.rb in statsd-instrument-3.0.2 vs lib/statsd/instrument/rubocop/metaprogramming_positional_arguments.rb in statsd-instrument-3.1.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen-string-literal: true
-require_relative '../rubocop' unless defined?(RuboCop::Cop::StatsD)
+require_relative "../rubocop" unless defined?(RuboCop::Cop::StatsD)
module RuboCop
module Cop
module StatsD
# This Rubocop will check for using the metaprogramming macros for positional
@@ -17,10 +17,10 @@
#
# This cop will not autocorrect the offenses it finds, but generally the fixes are easy to fix
class MetaprogrammingPositionalArguments < Cop
include RuboCop::Cop::StatsD
- MSG = 'Use keyword arguments for StatsD metaprogramming macros'
+ MSG = "Use keyword arguments for StatsD metaprogramming macros"
def on_send(node)
if metaprogramming_method?(node)
arguments = node.arguments.dup
arguments.shift # method