Révision 09cba182
Enable parameter_documentation lint
The linter checks that every parameter has been documented.
While corrections have been made to great many classes some more
complicated examples have been left for now. Should be updated
as the files get touched.
https://github.com/domcleal/puppet-lint-param-docs
manifests/rules/snat4.pp | ||
---|---|---|
1 |
# manage a ipv4 snat rule |
|
1 |
# @summary manage a ipv4 snat rule
|
|
2 | 2 |
define nftables::rules::snat4 ( |
3 |
# lint:ignore:parameter_documentation |
|
3 | 4 |
String[1] $snat, |
4 | 5 |
Pattern[/^[a-zA-Z0-9_]+$/] $rulename = $title, |
5 | 6 |
Pattern[/^\d\d$/] $order = '70', |
... | ... | |
9 | 10 |
Optional[Enum['tcp','udp']] $proto = undef, |
10 | 11 |
Optional[Variant[String,Stdlib::Port]] $dport = undef, |
11 | 12 |
Enum['present','absent'] $ensure = 'present', |
13 |
# lint:endignore |
|
12 | 14 |
) { |
13 | 15 |
$oifname = $oif ? { |
14 | 16 |
undef => '', |
Formats disponibles : Unified diff