-
Notifications
You must be signed in to change notification settings - Fork 15
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
add --top-scope-variables cli argument, fix #228 #229
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,4 @@ | |||
# foo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove it, but the test will fail with [documentation] defined type not documented
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I simply copied this # foo
header from other similar test manifest fixtures, eg. spec/fixtures/test/manifests/fail.pp
and spec/fixtures/test/manifests/init.pp
and others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are trying to avoid this type of meaningless documentation. If a one-liner description doesn't make sense for this function then feel free to remove the entire comment and let Rubocop add it to the list of exceptions by running bundle exec rubocop --auto-gen-config
.
da71597
to
f4a94d3
Compare
Removed an extra blank line. |
Not sure how to deal with this issue, though:
|
Manually adjusting the Metrics/MethodLength variable in the rubocop_todo.yml file should do the trick. Alternatively, you can run |
Summary
This adds the
--top-scope-variables
CLI option that setsPuppetLint.configuration.top_scope_variables
.Related Issues (if any)
#228
Checklist