Variable Format


When defining variables you should only use letters, numbers and underscores. You should specifically not make use of dashes (style guide).

What you have done

$foo-bar

What you should have done:

$foo_bar

Disabling the check

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

$ puppet-lint --no-variable_contains_dash-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_contains_dash')