Variables Not Enclosed


All variables should be enclosed in in braces ({}) when being interpolated in a string (style guide).

What you have done

$foo = "bar $baz"

What you should have done:

$foo = "bar ${baz}"

Disabling the check

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

$ puppet-lint --no-variables_not_enclosed-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_variables_not_enclosed')

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant