Sha256: 122c60153add95e334cf38a537cf5530e007c92276a5b4e8a893a65e51a088fc
Contents?: true
Size: 354 Bytes
Versions: 24
Compression:
Stored size: 354 Bytes
Contents
# encoding: utf-8 module RuboCop module Cop module Lint # This cop checks for empty `ensure` blocks class EmptyEnsure < Cop MSG = 'Empty `ensure` block detected.' def on_ensure(node) _body, ensure_body = *node add_offense(node, :keyword) unless ensure_body end end end end end
Version data entries
24 entries across 24 versions & 2 rubygems