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

Topscope variables may be facts, but may also be top scope variables #13

Open
SimonHoenscheid opened this issue Apr 20, 2022 · 5 comments

Comments

@SimonHoenscheid
Copy link
Member

running the check with --fix on a manifest with lots of top scope variables shows the puppet lint check changes every variable into a fact.

solution: provide a list of facts

@bastelfreak
Copy link
Member

I'm wondering if we should disable fact manipulation in this plugin. We've https://github.com/mmckinst/puppet-lint-legacy_facts-check which should already fix it and puppetlabs/puppet-lint#41 mentioneds that both plugins conflict. CC: @ekohl @alexjfisher

@alexjfisher
Copy link
Member

@SimonHoenscheid Is this filed in the right place? I don't think this plugin is the one responsible for changing variables into 'facts'. We have got some conflicting behaviour between plugins though. Maybe this can be fixed by changing the order that plugins are run? I assume it's alphabetical in some way (but is that filename, or check name)???

@SimonHoenscheid
Copy link
Member Author

@alexjfisher I talked to @bastelfreak before opening this issue, because I was not sure, but the behavior of the lint check is dangerous.

@alexjfisher
Copy link
Member

@SimonHoenscheid Maybe we're talking cross purposes. Could you explain exactly what you mean by changes every variable into a fact.?

I'm wondering if you're actually encountering mmckinst/puppet-lint-top_scope_facts-check#10

@SimonHoenscheid
Copy link
Member Author

@alexjfisher If I memorize it correct yes. I am not sure, but I can try to replicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants