lib/rubocop/cop/style/and_or.rb in rubocop-0.18.1 vs lib/rubocop/cop/style/and_or.rb in rubocop-0.19.0
- old
+ new
@@ -22,12 +22,12 @@
def process_logical_op(node)
op = node.loc.operator.source
op_type = node.type.to_s
if op == op_type
- add_offence(node,
+ add_offense(node,
:operator,
- sprintf(MSG, OPS[op], op))
+ format(MSG, OPS[op], op))
end
end
def autocorrect(node)
c = correction(node)