Double Quoted Strings


All strings that do not contain variables or escape characters like \n or \t should be enclosed in single quotes (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-double_quoted_strings-check to your puppet-lint command line.

$ puppet-lint --no-double_quoted_strings-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_double_quoted_strings')