-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin does not ignore heredoc indentation #20
Comments
I've run into problems with heredocs as well with
|
Note that lint will continue to complain about the heredoc even after an "autofix". |
Facing same bug |
We are facing something similar.
If I remove the trailing comma, the indentation check passes, and obviously the comma check doesn't (that is normal), but to me, it's because this plugin doesn't properly handle the HEREDOC_OPEN and HEREDOC_POST tokens, setting everything to the same value, when it should handle the trailing comma and eventually other similar cases. Unfortunately I'm unable to propose a patch at the moment as I should understand more deeply the code... I'm very sorry, but I hope this will help someone else. For now, I'm disabling strict_indent using the puppet-lint comments (because vscode ignores the file .puppet-lint.rc :-\ )
|
This generates an error for me
That I haven't been able to find a workaround for.
|
I think in the example given the end marker needs to be intended
reference: https://www.puppet.com/docs/puppet/6/lang_data_string.html#lang_data_string_heredocs-example |
In some cases, the HEREDOC_OPEN is not followed directly by the content of the HEREDOC, but first by a COMMA voxpupuli#20 (comment)
Its really sad to see that this bug is 4 years old now and still not fixed. |
@bzed can you provide a patch for this? |
Hi,
in the voxpupuli/puppet-nginx module we've got the following code:
which produces the following error:
I'm not sure if this is easily to fix, at the moment I simply disabled the plugin for those lines.
The text was updated successfully, but these errors were encountered: