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