Skip to content

Unable to specify top_scope_variables configuration parameter with CLI interface #228

@jcharaoui

Description

@jcharaoui

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions