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

Require use of trailing commas at declaration site #4760

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rli
Copy link
Contributor

@rli rli commented Aug 2, 2024

https://kotlinlang.org/docs/coding-conventions.html#trailing-commas

The Kotlin style guide encourages the use of trailing commas at the declaration site and leaves it at your discretion for the call site.

Requiring trailing commas at call site would be nice as well, but will revisit in the future

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rli rli requested review from a team as code owners August 2, 2024 18:31
@@ -436,7 +436,8 @@ class CawsConnectionProvider : GatewayConnectionProvider {
}

is GitSettings.CawsOwnedRepoSettings,
is GitSettings.NoRepo -> {
is GitSettings.NoRepo,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the correct syntax, do we want the comma here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is multi line so it makes sense

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