-
-
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
Categorize 'interpreted as argument prefix' syntax lints #581
Conversation
In configuration, |
@yujinakayama Yeah, I don't like the current implementation either. Not sure how we can improve the situation, though. Maybe we could have some generic config option to suppress certain warnings? I guess we should think about that for a while. |
It might be clearer to just let the user specify regexes to filter it in
|
Or, separate cop per category of parser warning?
|
Separate cop for parser warning seems reasonable. I think there are only a few parser warnings, anyways. I'll leave it up to @yujinakayama to decide how to proceed, since he's the keeper of the Syntax cop :-) |
Sorry for the late reply. I also think separating cop for each category is simple and reasonable. @nevir If you'd like to do this for |
@nevir Ping :-) |
Sorry, haven't had a chance to work on it yet - week or so!
|
I haven't forgotten about this. I've got a pull request out to parser to directly expose their reasons as symbols, which should greatly simplify the code here. |
@nevir Good work. I guess we now have to wait for Parser 2.1, before we can wrap this. |
@nevir I guess you can bump the parser dep to ~> 2.1.0pre2 and do the necessary changes in RuboCop now. |
@yujinakayama I guess you'll have to do the outstanding changes. |
Sure. |
I like to be able to send splats & blocks to DSL-style methods, but the parser dislikes that