lib/cocoapods-core/specification/linter/result.rb
# Adds a result of the given type with the given message. If there is a
# current platform it is added to the result. If a result with the same
# type and the same message is already available the current platform is
# added to the existing result.
#
# @param  [Symbol] type
#         The type of the result (`:error`, `:warning`).
#
# @param  [String] message
#         The message of the result.
#
# @return [void]
#
Adds a result of the given type with the given message. If there is a
current platform it is added to the result. If a result with the same
type and the same message is already available the current platform is
added to the existing result.
Adds a result of the given type with the given message . If there is a current platform it is added to the result . If a result with the same type and the same message is already available the current platform is added to the existing result .
def add_result(type, attribute_name, message, public_only)
          result = results.find do |r|
            r.type == type && r.attribute_name == attribute_name && r.message == message && r.public_only? == public_only
          end
          unless result
            result = Result.new(type, attribute_name, message, public_only)
            results << result
          end
          result.platforms << @consumer.platform_name if @consumer
        end
def add_result ( type , attribute_name , message , public_only ) result = results . find do | r | r . type == type && r . attribute_name == attribute_name && r . message == message && r . public_only? == public_only end unless result result = Result . new ( type , attribute_name , message , public_only ) results << result end result . platforms << @consumer . platform_name if @consumer end
Adds a result of the given type with the given message.
Adds a result of the given type with the given message .
None
void
type
<not_specific>
attribute_name
<not_specific>
message
<not_specific>
public_only
<not_specific>
<not_specific>
message The message of the result.
message The message of the result .