lib/codeowner_validator/group/comment.rb
# Public: Creates an instance of the comment for usage.
#
# @param [Hash] _args The hash of arguments accepted
# @option _args [String] :comment The comment to create
# @option _args [Integer] :type The comment type (info, warn, error, verbose)
#
# @return [Info|]
Creates an instance of the comment for usage.
Creates an instance of the comment for usage .
def build(comment:, type: TYPE_INFO, **_args)
          subclasses.each do |klass|
            return klass.new(comment) if klass.match?(type)
          end
          raise "Type '#{type}' not supported" 
        end
def build ( comment : , type : TYPE_INFO , ** _args ) subclasses . each do | klass | return klass . new ( comment ) if klass . match? ( type ) end raise "Type '#{type}' not supported" end
Public: Creates an instance of the comment for usage.
Public : Creates an instance of the comment for usage .
# rubocop:disable Style/ImplicitRuntimeError
None
Info|
comment
type
_args
:type The comment type (info, warn, error, verbose)
: type The comment type ( info warn error verbose )
_args The hash of arguments accepted
_args The hash of arguments accepted