-
Notifications
You must be signed in to change notification settings - Fork 11
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
Added regexp/no-obscure-range
rule
#122
Conversation
@ota-meshi Maybe we should add a The build failed not because of the files I added/changed. The build failed because some dependency just released a new version with some breaking change. Because of this, ALL PRs will now fail until we find a solution for this. |
391ebfc
to
3f8c29b
Compare
The cause of the build break was a change in |
I want to do |
…t-plugin-regexp into no-obscure-range
We are currently in version From my understanding, we are allowed to introduce breaking changes from minor to minor as long as the major is 0. |
It's exactly as you said. But I would like to release v1.0 once we have implemented the clean-regex rules. |
I would say that we should release one last 0.x release after implementing the clean-regex rules. Frankly, I would like to test out all rules working together in practice for one or two weeks. Issues have been piling up over at Prism, so I will write a lot of regular expressions soon. v1.0 means that we now guarantee stability and I would like to thoroughly test this plugin before that.
I agree. I expect that we will have moved over most of clean-regex' rules by the end of April.
We are allowed to make breaking changes but won't to make things easier for our users? I can accept that reasoning. |
Changes:
To do:
@ota-meshi Thoughts ? |
Thank you for a lot of work!
I think it's better to use the same naming that mysticatea uses, so I think the setting should be
I think it's okay if the options in both rules have different names.
Thank you for finding and fixing bug! |
I like that. Now, the only thing left is to add some doc. |
I added some docs but I'm not sure if we want to keep it that way. I just added a new "Settings" page that explains what settings are and lists all settings. In the future, we might add more settings and each setting should probably get its own page. Should I do this now or do we wait until we add a second setting? |
Thank you for changing this PR! |
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.
LGTM! Thank you!
This is the
clean-regex/no-obscure-range
rule.I added it to recommended because it mainly finds bugs.
Since I added new util methods, I also made
regexp/no-octal
use one of them.