2 Space Soft Tabs


In order to comply with the style guide, manifests must use 2 space characters when indenting (style guide).

What you have done

file { '/tmp/foo':
    ensure => present,
}

What you should have done:

file { '/tmp/foo':
  ensure => present,
}

Disabling the check

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

$ puppet-lint --no-2sp_soft_tabs-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_2sp_soft_tabs')