Sha256: 261ed3351718cbca39e1f949ed84671d5fd281c41e5b58803b56358544c50bbe
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
# encoding: utf-8 module RuboCop module Cop module Lint # This cop checks for END blocks in method definitions. class EndInMethod < Cop include OnMethod MSG = '`END` found in method definition. Use `at_exit` instead.' private def on_method(node, _method_name, _args, _body) on_node(:postexe, node) do |end_node| add_offense(end_node, :keyword) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.25.0 | lib/rubocop/cop/lint/end_in_method.rb |