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

multileme statement parsing #325

Open jacekjaros opened 1 month ago

jacekjaros commented 1 month ago

Is your feature request related to a problem? Please describe. i want to get support for multi line statements: eg:

{%- for server, addrs in salt['mine.get'](
    tgt=cluster_target_query + ' and G@layer:SOME_LAYER_NAME',
    fun='network.ip_addrs',
    tgt_type='compound') | dictsort()
-%}

Describe the solution you'd like to parsing rules there should be passed string contain all lines from mentioned statement