Sha256: e0d4ea3527ffe086fc9e23f949b73f3fbb2570fe6ce6304d8eaf5e0f9caeccf7
Contents?: true
Size: 392 Bytes
Versions: 3
Compression:
Stored size: 392 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop checks for uses of Module#attr. class Attr < Cop MSG = 'Do not use `attr`. Use `attr_reader` instead.' def on_send(node) if command?(:attr, node) add_offence(:convention, node.loc.selector, MSG) end 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/attr.rb |
sabat-rubocop-0.9.0 | lib/rubocop/cop/style/attr.rb |
rubocop-0.9.0 | lib/rubocop/cop/style/attr.rb |