lib/rubocop/cop/rails/output.rb in rubocop-0.18.1 vs lib/rubocop/cop/rails/output.rb in rubocop-0.19.0
- old
+ new
@@ -12,23 +12,14 @@
:p,
:pp,
:pretty_print]
def on_send(node)
- return if matches_blacklist?(processed_source)
receiver, method_name, *_args = *node
if receiver.nil? && BLACKLIST.include?(method_name)
- add_offence(node, :selector)
+ add_offense(node, :selector)
end
- end
-
- def matches_blacklist?(source)
- ignore_paths.any? { |regex| source.buffer.name =~ /#{regex}/ }
- end
-
- def ignore_paths
- cop_config['Ignore']
end
end
end
end
end