-
-
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
Stop converting to 19 hash syntax when invalid #1765
Conversation
Sorry, I didn't realize there was a test for the changelog (which I added to after I ran the tests). I'm unclear what the test is actually testing and how I can fix it. |
Figured out what you forgot. [@username]: https://github.com/username at the end of the CHANGELOG.md file. |
@@ -6,6 +6,7 @@ | |||
|
|||
### New features | |||
|
|||
* [#1765](https://github.com/bbatsov/rubocop/pull/1765): Update 19 hash to stop triggering when the symbol is not valid in the 19 hash syntax. ([@crimsonknave][]) |
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.
This is the changelog for the old version (and this is definitely not a new feature).
I'm not sure why the 1.9.3 tests started printing things after I merged (which appears to be the cause of the failure). I'm not able to reproduce it locally. @bbatsov how does the less than, greater than filtering look to you? The names are a bit long at the moment, but I felt ruby_lte was a little too dense. |
👍 I would like this patch. I have encountered offenses like this:
|
The names look ok. The commits should be squashed to just two once you fix the failing build. |
86e7c16
to
93d4c12
Compare
@crimsonknave Rebase on top of the current |
a1a4817
to
b7721f7
Compare
Stop converting to 19 hash syntax when invalid
👍 |
Version 0.30.0 is now telling me to convert to 19 hash syntax in cases when it should not. There are a few cases where you can have a valid symbol that does not convert to valid 19 hash syntax. According to this comment the regex is pretty straight forward.
Most of the time this would not come up, but I've seen it while setting the
[]
method in a test double.As requested in the contributing guidelines: