Sha256: 1ad010b68ce23a221710b8a0d8108c99b861f972aceb30369a99aa5b35d20864

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 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)
          convention(node, :keyword)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubocop-0.15.0 lib/rubocop/cop/style/end_block.rb
rubocop-0.14.1 lib/rubocop/cop/style/end_block.rb
rubocop-0.14.0 lib/rubocop/cop/style/end_block.rb
rubocop-0.13.1 lib/rubocop/cop/style/end_block.rb
rubocop-0.13.0 lib/rubocop/cop/style/end_block.rb