class RuboCop::Cop::Yast::LogVariable

This cop checks for using log variable code like:

log = "msg"

can override the included logger

Constants

MSG

Public Instance Methods

on_lvasgn(node) click to toggle source
# File lib/rubocop/cop/yast/log_variable.rb, line 15
def on_lvasgn(node)
  name, _value = *node

  add_offense(node, :name, MSG) if name == :log
end