Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to specify top_scope_variables configuration parameter with CLI interface #228

Open
jcharaoui opened this issue Jan 23, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jcharaoui
Copy link

Use Case

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.

@jcharaoui jcharaoui added the enhancement New feature or request label Jan 23, 2025
jcharaoui added a commit to jcharaoui/puppet-lint that referenced this issue Jan 23, 2025
jcharaoui added a commit to jcharaoui/puppet-lint that referenced this issue Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant