voxpupuli / puppet-lint-strict_indent-check

indent check for puppet-lint
Mozilla Public License 2.0
4 stars 10 forks source link

Problem with heredoc strings #12

Closed amateo closed 5 years ago

amateo commented 7 years ago

I have this code

  $content = @(EOT)
    command[check_bind_stats]=/usr/lib/nagios/plugins/get_bind_stats.pl
    |EOT

which is correctly aligned (I think), but puppet-lint is reporting: [strict_indent] indent should be 2 chars and is 0

I have tried a lot of indent combinations, but I can't fix it.

smortex commented 5 years ago

@amateo, @walkamongus, @franknarf8, @neomilium, I submitted #14 which hopefully address this issue.

Using the following code in your Gemfile will use the patched code:

gem 'puppet-lint-strict_indent-check', git: 'https://github.com/smortex/puppet-lint-strict_indent-check.git', branch: 'add-heredoc-support'

Can you please test and report feedback in the PR? Thanks :bowing_man: