Sha256: 617782a90a6f9a13b37ab8a7c735b5a567691f36396f5e0b2fc1016275274462
Contents?: true
Size: 326 Bytes
Versions: 3
Compression:
Stored size: 326 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop checks for BEGIN blocks. class BeginBlock < Cop MSG = 'Avoid the use of BEGIN blocks.' def on_preexe(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/begin_block.rb |
sabat-rubocop-0.9.0 | lib/rubocop/cop/style/begin_block.rb |
rubocop-0.9.0 | lib/rubocop/cop/style/begin_block.rb |