-
Notifications
You must be signed in to change notification settings - Fork 208
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
code_on_top_scope warns about node definitions #580
Comments
I just realized that 3.0.0 is a branch rather than a tagged version, so please ignore that. The code_on_top_scope check is not in any released version. |
This is by design; ALL code on the top scope is flagged when this check is left enabled. |
Yes, and that design is wrong. Node definitions are supposed to be in the main manifests, top scope. |
In that case, it would be appropriate to disable the check for the file with a flag or control comment. A node statement anywhere other than |
NNode definitions is a standard language feature, not deprecated by the style guide. I expect to be able to run puppet-lint on such manifests without me having to add control comments or use flags. Also, node definitions can be in any file name, as the site manifests might be specified using a manifests directory. |
Example input
Expected: no warnings
Actual result:
Tested with version 3.0.0 and latest master (041b430) with same result.
The text was updated successfully, but these errors were encountered: