Add rubocop exclusion
This commit is contained in:
parent
fb2fdc5249
commit
791ff3ac75
@ -406,6 +406,12 @@ Style/OpenStructUse:
|
||||
- "Homebrew/cli/args.rb"
|
||||
- "Homebrew/cli/args.rbi"
|
||||
|
||||
Style/OptionalBooleanParameter:
|
||||
AllowedMethods:
|
||||
# This is an override of a core library method
|
||||
# see https://ruby-doc.org/3.3.4/Object.html#method-i-respond_to-3F
|
||||
- respond_to?
|
||||
|
||||
# Rescuing `StandardError` is an understood default.
|
||||
Style/RescueStandardError:
|
||||
EnforcedStyle: implicit
|
||||
|
||||
@ -734,7 +734,7 @@ class Version
|
||||
def to_json(*options) = version.to_json(*options)
|
||||
|
||||
sig { params(method: T.any(Symbol, String), include_all: T::Boolean).returns(T::Boolean) }
|
||||
def respond_to?(method, include_all = false) # rubocop:disable Style/OptionalBooleanParameter (`Object` override)
|
||||
def respond_to?(method, include_all = false)
|
||||
return !null? if ["to_str", :to_str].include?(method)
|
||||
|
||||
super
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user