Class Nitpick::Warnings::RescueEverything
In: lib/nitpick/warnings/rescue_everything.rb
Parent: SimpleWarning

Methods

matches?   message   new  

Public Class methods

[Source]

# File lib/nitpick/warnings/rescue_everything.rb, line 4
      def initialize(*args)
        @exceptions, @rescue_value = args
      end

Public Instance methods

[Source]

# File lib/nitpick/warnings/rescue_everything.rb, line 8
      def matches?
        return false unless @exceptions
        [:Object, :Exception].find do |const|
          @exceptions.include? [:const, const]
        end
      end

[Source]

# File lib/nitpick/warnings/rescue_everything.rb, line 15
      def message
        "A rescue is capturing Object or Exception, which may hide errors."
      end

[Validate]