Skip to content

Commit fd185f0

Browse files
committed
Add missing @summary for data types
1 parent f765aef commit fd185f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+42
-39
lines changed

types/absolutepath.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# A strict absolutepath type
1+
# @summary A strict absolutepath type
22
type Stdlib::Absolutepath = Variant[Stdlib::Windowspath, Stdlib::Unixpath]

types/base32.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Type to match base32 String
1+
# @summary Type to match base32 String
22
type Stdlib::Base32 = Pattern[/\A[a-z2-7]+={,6}\z/, /\A[A-Z2-7]+={,6}\z/]

types/base64.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Type to match base64 String
1+
# @summary Type to match base64 String
22
type Stdlib::Base64 = Pattern[/\A[a-zA-Z0-9\/\+]+={,2}\z/]

types/compat/absolute_path.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Emulate the is_absolute_path and validate_absolute_path functions
1+
# @summary Emulate the is_absolute_path and validate_absolute_path functions
22
#
33
# The first pattern is originally from is_absolute_path, which had it from 2.7.x's lib/puppet/util.rb Puppet::Util.absolute_path?
44
# slash = '[\\\\/]'

types/compat/array.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Emulate the is_array and validate_array functions
1+
# @summary Emulate the is_array and validate_array functions
22
type Stdlib::Compat::Array = Array[Any]

types/compat/bool.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Emulate the is_bool and validate_bool functions
1+
# @summary Emulate the is_bool and validate_bool functions
22
type Stdlib::Compat::Bool = Boolean

types/compat/float.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Emulate the is_float function
1+
# @summary Emulate the is_float function
22
# The regex is what's currently used in is_float
33
# To keep your development moving forward, you can also add a deprecation warning using the Integer type:
44
#

types/compat/hash.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Emulate the is_hash and validate_hash functions
1+
# @summary Emulate the is_hash and validate_hash functions
22
type Stdlib::Compat::Hash = Hash[Any, Any]

types/compat/integer.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Emulate the is_integer and validate_integer functions
1+
# @summary Emulate the is_integer and validate_integer functions
22
# The regex is what's currently used in is_integer
33
# validate_numeric also allows range checking, which cannot be mapped to the string parsing inside the function.
44
# For full backwards compatibility, you will need to keep the validate_numeric call around to catch everything.

types/compat/ip_address.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate an IP address
1+
# @summary Validate an IP address
22
type Stdlib::Compat::Ip_address = Variant[Stdlib::Compat::Ipv4, Stdlib::Compat::Ipv6]

types/compat/ipv4.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Emulate the validate_ipv4_address and is_ipv4_address functions
1+
# @summary Emulate the validate_ipv4_address and is_ipv4_address functions
22
type Stdlib::Compat::Ipv4 = Pattern[/^((([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25[0-5](?!\d))[.]){3}([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25[0-5](?!\d)))(\/((([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25[0-5](?!\d))[.]){3}([0-9](?!\d)|[1-9][0-9](?!\d)|1[0-9]{2}(?!\d)|2[0-4][0-9](?!\d)|25[0-5](?!\d))|[0-9]+))?$/] # lint:ignore:140chars

types/compat/ipv6.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate an IPv6 address
1+
# @summary Validate an IPv6 address
22
type Stdlib::Compat::Ipv6 = Pattern[/\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/] # lint:ignore:140chars

types/compat/numeric.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Emulate the is_numeric and validate_numeric functions
1+
# @summary Emulate the is_numeric and validate_numeric functions
22
# The regex is what's currently used in is_numeric
33
# validate_numeric also allows range checking, which cannot be mapped to the string parsing inside the function.
44
# For full backwards compatibility, you will need to keep the validate_numeric call around to catch everything.

types/compat/re.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Emulate the validate_re function
1+
# @summary Emulate the validate_re function
22
# validate_re(value, re) translates to Pattern[re], which is not directly mappable as a type alias, but can be specified as Pattern[re].
33
# Therefore this needs to be translated directly.

types/compat/string.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Emulate the is_string and validate_string functions
1+
# @summary Emulate the is_string and validate_string functions
22
type Stdlib::Compat::String = Optional[String]

types/datasize.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate the size of data
1+
# @summary Validate the size of data
22
type Stdlib::Datasize = Pattern[/^\d+(?i:[kmgt]b?|b)$/]

types/email.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# @summary Validate an e-mail address
12
# https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
23
# lint:ignore:140chars
34
type Stdlib::Email = Pattern[/\A[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/]

types/ensure/file.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate the value of the ensure parameter for a file
1+
# @summary Validate the value of the ensure parameter for a file
22
type Stdlib::Ensure::File = Enum['present', 'file', 'directory', 'link', 'absent']

types/ensure/service.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate the value of the ensure parameter of a service resource
1+
# @summary Validate the value of the ensure parameter of a service resource
22
type Stdlib::Ensure::Service = Enum['stopped', 'running']

types/filemode.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# @summary Validate a file mode
12
# See `man chmod.1` for the regular expression for symbolic mode
23
# lint:ignore:140chars
34
type Stdlib::Filemode = Pattern[/\A(([0-7]{1,4})|(([ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+)(,([ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+))*))\z/]

types/filesource.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Validate the source parameter on file types
1+
# @summary Validate the source parameter on file types
22
type Stdlib::Filesource = Variant[
33
Stdlib::Absolutepath,
44
Stdlib::HTTPUrl,

types/fqdn.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a Fully Qualified Domain Name
1+
# @summary Validate a Fully Qualified Domain Name
22
type Stdlib::Fqdn = Pattern[/\A(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])\z/]

types/host.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a host (FQDN or IP address)
1+
# @summary Validate a host (FQDN or IP address)
22
type Stdlib::Host = Variant[Stdlib::Fqdn, Stdlib::Compat::Ip_address]

types/httpstatus.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a HTTP status code
1+
# @summary Validate a HTTP status code
22
type Stdlib::HttpStatus = Integer[100, 599]

types/httpsurl.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a HTTPS URL
1+
# @summary Validate a HTTPS URL
22
type Stdlib::HTTPSUrl = Pattern[/(?i:\Ahttps:\/\/.*\z)/]

types/httpurl.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a HTTP(S) URL
1+
# @summary Validate a HTTP(S) URL
22
type Stdlib::HTTPUrl = Pattern[/(?i:\Ahttps?:\/\/.*\z)/]

types/ip/address.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Validate an IP address
1+
# @summary Validate an IP address
22
type Stdlib::IP::Address = Variant[
33
Stdlib::IP::Address::V4,
44
Stdlib::IP::Address::V6,

types/mac.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# A type for a MAC address
1+
# @summary A type for a MAC address
22
type Stdlib::MAC = Pattern[
33
/\A([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})\z/,
44
/\A([0-9A-Fa-f]{2}[:-]){19}([0-9A-Fa-f]{2})\z/,

types/objectstore.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Validate an ObjectStore
1+
# @summary Validate an ObjectStore
22
type Stdlib::ObjectStore = Variant[
33
Stdlib::ObjectStore::GSUri,
44
Stdlib::ObjectStore::S3Uri,

types/objectstore/gsuri.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a Google Cloud object store URI
1+
# @summary Validate a Google Cloud object store URI
22
type Stdlib::ObjectStore::GSUri = Pattern[/\Ags:\/\/.*\z/]

types/objectstore/s3uri.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate an Amazon Web Services S3 object store URI
1+
# @summary Validate an Amazon Web Services S3 object store URI
22
type Stdlib::ObjectStore::S3Uri = Pattern[/\As3:\/\/.*\z/]

types/port.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a port number
1+
# @summary Validate a port number
22
type Stdlib::Port = Integer[0, 65535]

types/port/dynamic.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a dynamic port number
1+
# @summary Validate a dynamic port number
22
type Stdlib::Port::Dynamic = Integer[49152, 65535]

types/port/ephemeral.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate an ephemeral port number
1+
# @summary Validate an ephemeral port number
22
type Stdlib::Port::Ephemeral = Stdlib::Port::Dynamic

types/port/privileged.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a priviliged port number
1+
# @summary Validate a priviliged port number
22
type Stdlib::Port::Privileged = Integer[1, 1023]

types/port/registered.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a registered port number
1+
# @summary Validate a registered port number
22
type Stdlib::Port::Registered = Stdlib::Port::User

types/port/unprivileged.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate an unprivileged port number
1+
# @summary Validate an unprivileged port number
22
type Stdlib::Port::Unprivileged = Integer[1024, 65535]

types/port/user.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a port number usable by a user
1+
# @summary Validate a port number usable by a user
22
type Stdlib::Port::User = Integer[1024, 49151]

types/syslogfacility.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Validate a syslog facility
1+
# @summary Validate a syslog facility
22
type Stdlib::Syslogfacility = Enum[
33
'kern',
44
'user',

types/unixpath.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# @summary Validate a UNIX path
12
# this regex rejects any path component that does not start with "/" or is NUL
23
type Stdlib::Unixpath = Pattern[/\A\/([^\n\/\0]+\/*)*\z/]

types/windowspath.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a Windows path
1+
# @summary Validate a Windows path
22
type Stdlib::Windowspath = Pattern[/\A(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+)).*\z/]

types/yes_no.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Validate a yes / no value
1+
# @summary Validate a yes / no value
22
type Stdlib::Yes_no = Pattern[/\A(?i:(yes|no))\z/]

0 commit comments

Comments
 (0)