Sha256: 4fc52c53bc177e74474bcb4a0e8a4dbb990b7cea4dcaa22e758d1d780498dc14

Contents?: true

Size: 718 Bytes

Versions: 246

Compression:

Stored size: 718 Bytes

Contents

# Configures validation suitable for the bindings model
# @api public
#
class Puppet::Pops::Binder::BindingsValidatorFactory < Puppet::Pops::Validation::Factory
  Issues = Puppet::Pops::Binder::BinderIssues

  # Produces the checker to use
  def checker diagnostic_producer
    Puppet::Pops::Binder::BindingsChecker.new(diagnostic_producer)
  end

  # Produces the label provider to use
  def label_provider
    Puppet::Pops::Binder::BindingsLabelProvider.new()
  end

  # Produces the severity producer to use
  def severity_producer
    p = super

    # Configure each issue that should **not** be an error
    #
    p[Issues::MISSING_BINDINGS] = :warning
    p[Issues::MISSING_LAYERS]   = :warning

    p
  end
end

Version data entries

246 entries across 246 versions & 2 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.12 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.12-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.12-x64-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.12-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.11 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.11-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.11-x64-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.11-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.10 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.10-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.10-x64-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.10-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.9 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.9-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.9-x64-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.10.9-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb