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

Fix formatting with comments (colon-spacing) #1058

Merged
merged 3 commits into from
Jan 16, 2021

Conversation

t-kameyama
Copy link
Contributor

Description

Fixes #1057

Checklist

  • tests are added
  • CHANGELOG.md is updated

Comment on lines 291 to 292
val x: // comment
Int = 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure it is the best way to format 🤔
Property type should be, imho, on the same line with property name. Probably formatted code could look like this:

val x: Int = // comment
    1

or like this:

// comment
val x: Int = 1

What do you think?

Copy link
Contributor Author

@t-kameyama t-kameyama Jan 16, 2021

Choose a reason for hiding this comment

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

val x: Int = // comment
    1

I think this is better.
Fixed in e36aebf.

@t-kameyama t-kameyama force-pushed the issue_1057 branch 2 times, most recently from bedc883 to 8b37d87 Compare January 16, 2021 07:00
@t-kameyama t-kameyama requested a review from Tapchicoma January 16, 2021 07:14
Copy link
Collaborator

@Tapchicoma Tapchicoma left a comment

Choose a reason for hiding this comment

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

LGTM!

@Tapchicoma Tapchicoma merged commit aa03a6b into pinterest:master Jan 16, 2021
@t-kameyama t-kameyama deleted the issue_1057 branch January 16, 2021 10:13
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.

multiline expressions transformed to single line inside comment
2 participants