warpnet / salt-lint

A command-line utility that checks for best practices in SaltStack.
https://salt-lint.readthedocs.io/en/latest/
MIT License
152 stars 39 forks source link

[206] false positive #313

Open sblaisot opened 11 months ago

sblaisot commented 11 months ago

Describe the bug

Rule 206 gives false positive whenever if finds }} even if it's inside a jinja block

$ salt-lint init.sls 
[206] Jinja variables should have spaces before and after: '{{ var_name }}'
init.sls:83
  {%- do hash_variable.update({'tls': {'cert': '/path/to/cert.pem', 'key': '/path/to/cert.key'}}) %}

To Reproduce

Add the above line that extends a hash variable in your sls file

Expected behavior

No trigger for rule 206