Projet

Général

Profil

Révision 09cba182

ID09cba1822af345c6fe7d4db1a49921f12a53cb31
Parent 6587545a
Enfant e2031b31

Ajouté par Steve Traylen il y a plus de 4 ans

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

Voir les différences:

manifests/rules/dnat4.pp
1 1
# manage a ipv4 dnat rule
2 2
define nftables::rules::dnat4 (
3
  # lint:ignore:parameter_documentation
3 4
  Pattern[/^[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}$/] $daddr,
4 5
  Variant[String,Stdlib::Port] $port,
5 6
  Pattern[/^[a-zA-Z0-9_]+$/] $rulename = $title,
......
9 10
  Enum['tcp','udp'] $proto = 'tcp',
10 11
  Optional[Variant[String,Stdlib::Port]] $dport = '',
11 12
  Enum['present','absent'] $ensure = 'present',
13
  # lint:endignore
12 14
) {
13 15
  $iifname = $iif ? {
14 16
    undef   => '',

Formats disponibles : Unified diff