Sha256: 8ad1f1131f30292f37f40f07bab6f05025e0eb3217094de08b250c03e7a21733
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class RescueModifier < Cop MSG = 'Avoid using rescue in its modifier form.' def inspect(source, tokens, ast, comments) on_node(:rescue, ast, :begin) do |s| add_offence(:convention, s.loc.line, MSG) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.8.0 | lib/rubocop/cop/rescue_modifier.rb |