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
Our manifests use the top-scope $role variable in several places, but our linting setup, both with vim-ale and git pre-receive hook invoke puppet-lint on the command-line interface, and this is flagged.
Describe the Solution You Would Like
Add a --top-scope-variable option to the puppet-lint binary, so we're able to set --top-scope-variables=role in the configuration file.
Describe Alternatives You've Considered
In have been using PuppetLint.configuration.top_scope_variables = ['role'] in a config file in combiation with --load=config-file in .puppet-lint.rc, which is a somewhat convoluted workaround.
The text was updated successfully, but these errors were encountered:
Use Case
Our manifests use the top-scope
$role
variable in several places, but our linting setup, both with vim-ale and gitpre-receive
hook invokepuppet-lint
on the command-line interface, and this is flagged.Describe the Solution You Would Like
Add a
--top-scope-variable
option to thepuppet-lint
binary, so we're able to set--top-scope-variables=role
in the configuration file.Describe Alternatives You've Considered
In have been using
PuppetLint.configuration.top_scope_variables = ['role']
in a config file in combiation with--load=config-file
in.puppet-lint.rc
, which is a somewhat convoluted workaround.The text was updated successfully, but these errors were encountered: