Sha256: 24faa6acb8f74aa75a54514b82b29af494f50be875163b503332dff76362252e
Contents?: true
Size: 280 Bytes
Versions: 4
Compression:
Stored size: 280 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class AvoidFor < Cop MSG = 'Prefer *each* over *for*.' def on_for(node) add_offence(:convention, node.loc.keyword.line, MSG) super end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.8.3 | lib/rubocop/cop/avoid_for.rb |
rubocop-0.8.2 | lib/rubocop/cop/avoid_for.rb |
rubocop-0.8.1 | lib/rubocop/cop/avoid_for.rb |
rubocop-0.8.0 | lib/rubocop/cop/avoid_for.rb |