lib/rubocop/cop/style/space_after_not.rb in rubocop-0.15.0 vs lib/rubocop/cop/style/space_after_not.rb in rubocop-0.16.0
- old
+ new
@@ -19,10 +19,10 @@
return unless method_name == :!
if node.loc.expression.source =~ /^!\s+\w+/
# TODO: Improve source range to highlight the redundant whitespace.
- convention(node, :selector)
+ add_offence(node, :selector)
end
end
def autocorrect(node)
@corrections << lambda do |corrector|