rodjek / puppet-lint

Check that your Puppet manifests conform to the style guide
MIT License
820 stars 204 forks source link

Select parameter tokens based on preceeding code token #934

Closed rodjek closed 3 years ago

rodjek commented 3 years ago

Class/defined type parameter name tokens can be more accurately selected based on the type of non-whitespace token that preceeds it.

:VARIABLE preceeded by:

As before, tokens within balanced pairs of parens will be automatically skipped over, preventing a function call that takes a variable parameter from generating a false positive in the first 2 cases.

Fixes #930