warpnet / salt-lint

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

[206] false positive #313

Open sblaisot opened 1 year ago

sblaisot commented 1 year 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