Sha256: bedad61384c354dc41d7553b0645fc4e75c0260271ea5d1e1e2d4de7315a4377
Contents?: true
Size: 351 Bytes
Versions: 3
Compression:
Stored size: 351 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop checks for END blocks. class EndBlock < Cop MSG = 'Avoid the use of END blocks. Use `Kernel#at_exit` instead.' def on_postexe(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/end_block.rb |
sabat-rubocop-0.9.0 | lib/rubocop/cop/style/end_block.rb |
rubocop-0.9.0 | lib/rubocop/cop/style/end_block.rb |