lib/rubocop/cop/style/special_global_vars.rb in rubocop-0.15.0 vs lib/rubocop/cop/style/special_global_vars.rb in rubocop-0.16.0
- old
+ new
@@ -43,10 +43,10 @@
])
def on_gvar(node)
global_var, = *node
- convention(node, :expression) if PREFERRED_VARS[global_var]
+ add_offence(node, :expression) if PREFERRED_VARS[global_var]
end
def message(node)
global_var, = *node