You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the name of a resource attribute clashes with a Puppet keyword, then puppet-lint does not assign it the :NAME token type, but a keyword token type instead.
The unless bare word is assigned the :UNLESS token type. Since in this context, it is not the unless puppet keyword, it should be assigned the :NAME token type instead.
This also causes issues when using resource_indexes. The :param_tokens hash element for the above example is an empty array, when it should contain a single token (for the single attribute used).
If the name of a resource attribute clashes with a Puppet keyword, then puppet-lint does not assign it the
:NAME
token type, but a keyword token type instead.For example, with this
Exec
resourceThe
unless
bare word is assigned the:UNLESS
token type. Since in this context, it is not theunless
puppet keyword, it should be assigned the:NAME
token type instead.This also causes issues when using
resource_indexes
. The:param_tokens
hash element for the above example is an empty array, when it should contain a single token (for the single attribute used).From http://puppet-lint.com/developer/api/
The text was updated successfully, but these errors were encountered: