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
Trailing comma is forced for single arguments #2769
Comments
With @hackling earlier opened a GH issue, saying that if there was only a single item, it shouldn't require a comma. We did that, and a lot of people didn't like it. If we are going to do it again, it has to be a separate style this time. |
@alexdowad What is this style called? Basically commas are always there where it helps
|
@ptarjan There is no style like what you show here. It could become a new one, though. |
Yay. That would be nice. |
Do you have a suggestion on what to call this style? |
There's a separate cop for method args. Just disable it... |
ESLint calls it http://eslint.org/docs/1.10.3/rules/comma-dangle.html @bbatsov I want it to apply to method args when the |
These offenses are not properly excluded due to rubocop/rubocop#2769. Just fix them.
These offenses are not properly excluded due to rubocop/rubocop#2769. Just fix them.
There hasn't been much activity on this ticket and our Core Team is spread too thin on so many tasks, so I'll just close it for the sake of having a cleaner lists of tasks to focus on. We'd gladly review a PR, but it's unlikely that'd we're going to tackle this ourselves in the foreseeable future. |
This shouldn't need a trailing comma
but it is being corrected to:
The text was updated successfully, but these errors were encountered: