Variable Format


When defining variables you must only use numbers, lowercase letters, and underscores. You should not use camelCasing, as it introduces inconsistency in style. (style guide).

What you have done

$packageName

What you should have done:

$package_name

Disabling the check

To disable this check you can add --no-variable_is_lowercase-check to your puppet-lint command line.

$ puppet-lint --no-variable_is_lowercase-check path/to/file.pp

Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your Rakefile.

PuppetLint.configuration.send('disable_variable_is_lowercase')