Sha256: a21d3ed5999a9d87cc920f031c8717d00b75164179ca65774812f6da87cfa9f1
Contents?: true
Size: 928 Bytes
Versions: 12
Compression:
Stored size: 928 Bytes
Contents
module Puppet::Pops module Validation # Configures validation suitable for 4.0 # class ValidatorFactory_4_0 < Factory Issues = Issues # Produces the checker to use def checker diagnostic_producer Checker4_0.new(diagnostic_producer) end # Produces the label provider to use def label_provider Model::ModelLabelProvider.new() end # Produces the severity producer to use def severity_producer p = super # Configure each issue that should **not** be an error # # Validate as per the current runtime configuration p[Issues::RT_NO_STORECONFIGS_EXPORT] = Puppet[:storeconfigs] ? :ignore : :warning p[Issues::RT_NO_STORECONFIGS] = Puppet[:storeconfigs] ? :ignore : :warning p[Issues::FUTURE_RESERVED_WORD] = :deprecation p[Issues::NAME_WITH_HYPHEN] = :error p[Issues::EMPTY_RESOURCE_SPECIALIZATION] = :ignore p end end end end
Version data entries
12 entries across 12 versions & 1 rubygems