Skip to content
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

Rubocop trailing comma rules #939

Merged
merged 3 commits into from
May 18, 2021
Merged

Rubocop trailing comma rules #939

merged 3 commits into from
May 18, 2021

Conversation

solebared
Copy link
Collaborator

Why

Building on #935, enables rules related to trailing commas, fixing corresponding violations.

What

Standard used to allow trailing commas but switched to disallowing them everywhere: standardrb/standard#159

I've admittedly been a long-time fan of trailing commas but was convinced by the discussion linked from the issue above: fables-tales/rubyfmt#154

Testing

Relying on our existing suite to catch any regressions.

Next Steps

?

Outstanding Questions, Concerns and Other Notes

Not sure if any others on the core team are/were fans of trailing commas?
I'm curious how this lands?

Pre-Merge Checklist

  • Security & accessibility have been considered
  • Tests have been added, or an explanation has been given why the features cannot be tested
  • Documentation and comments have been added to the codebase where required
  • Entry added to CHANGELOG.md if appropriate
  • Outstanding questions and concerns have been resolved
  • Any next steps have been turned into Issues or Discussions as appropriate

Base automatically changed from rubocop/layout to main May 18, 2021 20:15
Standard used to allow trailing commas but switched to disallowing
them everywhere: standardrb/standard#159

I've admittedly been a long-time fan of trailing commas but was
convinced by the discussion linked from the issue above:
fables-tales/rubyfmt#154
See discussion in previous comments.
See discussion in antepenultimate commit
@solebared solebared merged commit 1f9d0d7 into main May 18, 2021
@solebared solebared deleted the rubocop/trailing-commas branch May 18, 2021 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants