Sha256: ea9e7b8bf7a8c02da2d1c143445dc9fad9c98d82d2976bfa6d5acc2fc6198bdb
Contents?: true
Size: 328 Bytes
Versions: 3
Compression:
Stored size: 328 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop looks for uses of the *for* keyword. class AvoidFor < Cop MSG = 'Prefer *each* over *for*.' def on_for(node) add_offence(:convention, node.loc.keyword, MSG) super end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
rubocop-0.9.1 | lib/rubocop/cop/style/avoid_for.rb |
sabat-rubocop-0.9.0 | lib/rubocop/cop/style/avoid_for.rb |
rubocop-0.9.0 | lib/rubocop/cop/style/avoid_for.rb |