Sha256: 092bdbebc629b20174d5261f484534e6db07f2a37d05c750025818be50c8a0a3

Contents?: true

Size: 364 Bytes

Versions: 11

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

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.'.freeze

        def on_postexe(node)
          add_offense(node, location: :keyword)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rubocop-0.57.2/lib/rubocop/cop/style/end_block.rb
rubocop-0.57.2 lib/rubocop/cop/style/end_block.rb
rubocop-0.57.1 lib/rubocop/cop/style/end_block.rb
rubocop-0.57.0 lib/rubocop/cop/style/end_block.rb
rubocop-0.56.0 lib/rubocop/cop/style/end_block.rb
rubocop-0.55.0 lib/rubocop/cop/style/end_block.rb
rubocop-0.54.0 lib/rubocop/cop/style/end_block.rb
rubocop-0.53.0 lib/rubocop/cop/style/end_block.rb
rubocop-0.52.1 lib/rubocop/cop/style/end_block.rb
rubocop-0.52.0 lib/rubocop/cop/style/end_block.rb
rubocop-0.51.0 lib/rubocop/cop/style/end_block.rb