class Rubocop::Cop::Style::AvoidFor
This cop looks for uses of the for keyword.
Constants
- MSG
Public Instance Methods
on_for(node)
click to toggle source
Calls superclass method
# File lib/rubocop/cop/style/avoid_for.rb, line 10 def on_for(node) add_offence(:convention, node.loc.keyword, MSG) super end