Sha256: 99de11e14693dd8ca5fbb91cd16c7b1ced2be4ab830c1bd9d1cdc84a432bafe1
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 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_offense(node, :keyword) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.19.1 | lib/rubocop/cop/style/end_block.rb |
rubocop-0.19.0 | lib/rubocop/cop/style/end_block.rb |