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

Enable trailing commas in code style #1155

Merged
merged 2 commits into from Jan 7, 2021
Merged

Enable trailing commas in code style #1155

merged 2 commits into from Jan 7, 2021

Conversation

zsmb13
Copy link
Contributor

@zsmb13 zsmb13 commented Jan 7, 2021

Description

This changes the IDE behaviour so that running auto-formatting on a file will add trailing commas to appropriate places. I didn't want to reformat the entire project and touch all files this PR, but hopefully we'll have more and more trailing commas in the project with this change over time, as we format the files that we touch (please run IDE formatting before commits!).

ktlint, unfortunately, doesn't pick this up yet (see pinterest/ktlint#709).

Before After
Screenshot 2021-01-07 at 16 18 50 Screenshot 2021-01-07 at 16 18 40

Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Changelog updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes ✅
  • Reviewers added

@zsmb13 zsmb13 requested a review from a team January 7, 2021 15:21
@zsmb13 zsmb13 self-assigned this Jan 7, 2021
@zsmb13 zsmb13 merged commit 77d3d01 into develop Jan 7, 2021
@delete-merged-branch delete-merged-branch bot deleted the trailing-comma branch January 7, 2021 19:18
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.

None yet

2 participants