Sha256: 9a7ea5b71c26fab503b73c9a982336019b39abb42e4c5641fa0ab283532943e1
Contents?: true
Size: 887 Bytes
Versions: 1
Compression:
Stored size: 887 Bytes
Contents
# puppet-lint-param-types This plugin validates that all class and defined type parameter are typed. ## Installation To use this plugin, add the following line to the Gemfile in your Puppet code base and run `bundle install`. ```ruby gem 'puppet-lint-param-types ``` Verify that plugin is installed correctly. ```bash $ puppet-lint -h | grep parameter_types --no-parameter_types-check Skip the parameter_types check. ``` ## Usage ### parameter_types **--fix-support: No** Will raise a warning if a class parameter without data type specification is found. ``` WARNING: missing datatype for parameter mysql::service_ensure on line 5 ``` What you did: ``` class foo ( $bar, $baz, ) { ... } ``` What you should have done: ``` class foo ( Integer $bar, Array[String] $baz, ) { ... } ``` ## References https://puppet.com/docs/puppet/latest/lang_data_type.html
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-lint-param-types-0.0.1 | README.md |