lib/fasterer/scanners/method_call_scanner.rb in fasterer-0.6.0 vs lib/fasterer/scanners/method_call_scanner.rb in fasterer-0.7.0

- old
+ new

@@ -42,10 +42,12 @@ when :last check_last_offense when :include? check_range_include_offense end + + check_symbol_to_proc end def check_module_eval_offense first_argument = method_call.arguments.first return unless first_argument && first_argument.value.is_a?(String) @@ -96,11 +98,9 @@ when :reverse add_offense(:reverse_each_vs_reverse_each) when :keys add_offense(:keys_each_vs_each_key) end - - check_symbol_to_proc end def check_flatten_offense return method_call unless method_call.receiver.is_a?(MethodCall)