Skip to content

plugin does not ignore heredoc indentation #20

@bastelfreak

Description

@bastelfreak

Hi,
in the voxpupuli/puppet-nginx module we've got the following code:

class { 'nginx':
  snippets_dir        => '/etc/nginx/snippets',
}

$snippet = @("SNIPPET"/L)
location @custom_451_error {
  return 451;
}
| SNIPPET

which produces the following error:

examples/snippet.pp:6:strict_indent:FIXED:indent should be 2 chars and is 1

I'm not sure if this is easily to fix, at the moment I simply disabled the plugin for those lines.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions