Class: RuboCop::Cop::Jekyll::NoPutsAllowed

Inherits:
RuboCop::Cop show all
Defined in:
lib/rubocop/cop/jekyll/no_puts_allowed.rb

Constant Summary collapse

MSG =
"Avoid using `puts` to print things. Use `Jekyll.logger` instead."

Instance Method Summary collapse

Instance Method Details

#on_send(node) ⇒ Object



16
17
18
# File 'lib/rubocop/cop/jekyll/no_puts_allowed.rb', line 16

def on_send(node)
  add_offense(node, :location => :selector) if puts_called?(node)
end