puppet-lint icon indicating copy to clipboard operation
puppet-lint copied to clipboard

Spacing, indentation, and whitespace

Open dioni21 opened this issue 8 years ago • 1 comments

According to this style guide:

The following file should give 6 warnings. But none is given.

class test {
  file { '/tmp/good': ensure => file; }
  # space between title and colon
  file { '/tmp/bad1' : ensure => file; }
  # no spaces
  file{'/tmp/bad2': ensure => file; }
  file {'/tmp/bad3': ensure => file; }
  file{ '/tmp/bad4': ensure => file; }
  # too many spaces
  file   { '/tmp/bad5': ensure => file; }
  file {   '/tmp/bad6': ensure => file; }
}

puppet-lint --no-autoloader_layout-check test.pp

Sorry, no patch...

dioni21 avatar Mar 07 '17 18:03 dioni21

working on tests here: https://github.com/rothsa/puppet-lint/tree/spacing_warnings, but there's a lot of them. Will make a pull when the fixes are done.

rothsa avatar Mar 30 '17 02:03 rothsa