-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Warning: unrecognized parameter Style/AlignParameters:IndentationWidth #3095
Comments
Yup,
I'm not sure why you would expect no warning when providing an unrecognized parameter. |
@mikegee Thanks for responding. The I would very much like it to become official. BTW: Where are the cop parameters documented? |
OK, found docs here: https://github.com/bbatsov/rubocop/blob/master/config/default.yml Would be nice to add |
@alexdowad I don't know if this is the same problem or not, but ever since
Even though that config is in the default config Copied and pasted from my config: Lint/UnusedBlockArgument:
Enabled: true
IgnoreEmptyBlocks: true |
nm. I see what the problem is. I'll submit a PR for it. |
…red (#3192) In 8f01fbe a very old patch was applied to a new tree. Because of this, the changes made in that commit to the default config actually added the same key for the `Lint/UnusedBlockArgument` cop a second time. Because of how YAML parses, the previous definition, which defined the `IgnoreEmptyBlocks` parameter was lost and because of _that_, any configuration that defined it would now throw a warning. Also brought up in #3095
Thanks! |
…red (rubocop#3192) In 8f01fbe a very old patch was applied to a new tree. Because of this, the changes made in that commit to the default config actually added the same key for the `Lint/UnusedBlockArgument` cop a second time. Because of how YAML parses, the previous definition, which defined the `IgnoreEmptyBlocks` parameter was lost and because of _that_, any configuration that defined it would now throw a warning. Also brought up in rubocop#3095
…eters It was supported anyways, through the AutocorrectAlign mixin, but not explicitly allowed as a parameter.
Same issue for |
@faelin I cannot reproduce, what warning are you seeing and what version are you using? |
It was apparently a versioning problem. |
Expected behavior
No warning.
Actual behavior
However, the cop works as expected.
Steps to reproduce the problem
Add config:
Run rubocop
RuboCop version
The text was updated successfully, but these errors were encountered: