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/config.pp | ||
---|---|---|
1 | 1 |
# manage a config snippet |
2 | 2 |
define nftables::config ( |
3 |
# lint:ignore:parameter_documentation |
|
3 | 4 |
Pattern[/^\w+-\w+$/] $tablespec = $title, |
4 | 5 |
Optional[String] $content = undef, |
5 | 6 |
Optional[Variant[String,Array[String,1]]] $source = undef, |
6 | 7 |
String $prefix = 'custom-', |
8 |
# lint:endignore |
|
7 | 9 |
) { |
8 | 10 |
if $content and $source { |
9 | 11 |
fail('Please pass only $content or $source, not both.') |
Formats disponibles : Unified diff