No commit activity in last 3 years
No release in over 3 years
A puppet-lint plugin to check if parameters in Classes and Defines has types declared.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

puppet-lint-parameter_type-check

puppet-lint plugin to check if all parameters are declared with a specific type

Installation

To install add the following to your Gemfile and run bundle install gem puppet-lint-parameter_type-check, :require => false

or

gem install puppet-lint-parameter_type-check

Usage

The plugin provides new check through puppet-lint

parameter_type-check

--fix support: No

To disable this check use --no-parameter_type-check

This check will tell you if your parameters are not defined with a specific data type

define foo( 
    $foo, 
    $bar,
) { }

will result in a warning with the fallowing message:

WARNING: expected a parameter with type declared

Define examle that will pass this check:

define foo( 
  String $foo, 
  Integer $bar,
) { }

References

https://puppet.com/docs/puppet/latest/style_guide.html#type-signatures