Method: Puppet::Pops::Validation::Acceptor#initialize

Defined in:
lib/puppet/pops/validation.rb

#initializeAcceptor

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initializes this diagnostics acceptor. By default, the acceptor is configured with a default severity producer. TODO add semantic_label_provider

Parameters:

  • severity_producer (SeverityProducer)

    the severity producer to use to determine severity of an issue



373
374
375
376
377
# File 'lib/puppet/pops/validation.rb', line 373

def initialize
  @diagnostics = []
  @error_count = 0
  @warning_count = 0
end