Top Level Namespace

Defined Under Namespace

Classes: StdlibDeprecations

Constant Summary collapse

DEPRECATED_DATATYPES_VAR_TYPES =

Public: A puppet-lint custom check to detect removed deprecated compatibility data types.

[:CLASSREF].freeze
DEPRECATED_FUNCTIONS_VAR_TYPES =

Public: A puppet-lint custom check to detect deprecated functions.

Set[:FUNCTION_NAME]
REMOVED_FUNCTIONS =

These functions have been removed/scheduled for removal in stdlib 9.x.

%w[
  is_absolute_path type3x private is_bool validate_legacy validate_bool
  is_string validate_string is_integer validate_integer is_hash
  is_float validate_hash absolute_path validate_re validate_slength
  is_ipv6_address validate_ipv6_address is_ipv4_address validate_ipv4_address
  is_ip_address validate_ip_address size sprintf_hash is_email_address
  is_mac_address is_domain_name is_function_available hash has_key is_array
].freeze
REPLACED_FUNCTIONS =

Subset of REMOVED_FUNCTIONS that have been replaced with an alternative.

{
  'private' => 'assert_private()',
  'size' => 'length()',
  'sprintf_hash' => 'sprintf()',
  'hash' => 'Puppets built-in Hash.new()',
  'has_key' => '"if \'key\' in $my_hash"',
  'validate_legacy' => 'Puppet data types to validate parameters'
}.freeze
NAMESPACED_FUNCTIONS =

These functions have been namespaced in stdlib 9.x.

%w[
  batch_escape ensure_packages fqdn_rand_string has_interface_with merge
  os_version_gte parsehocon parsepson powershell_escape seeded_rand
  seeded_rand_string shell_escape to_json to_json_pretty to_python to_ruby
  to_toml to_yaml type_of validate_domain_name validate_email_address
].freeze