-
Notifications
You must be signed in to change notification settings - Fork 772
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
Track KtLint's code styles. #84
Conversation
@@ -257,7 +260,7 @@ | |||
<option name="ALLOW_TRAILING_COMMA" value="true" /> | |||
<indentOptions> | |||
<option name="INDENT_SIZE" value="2" /> | |||
<option name="CONTINUATION_INDENT_SIZE" value="4" /> | |||
<option name="CONTINUATION_INDENT_SIZE" value="2" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to reformat the Register Android codebase. I'll take care of this (that was the main concern why #82 was declined). Cash Android should already use a 2 space continuation indent.
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> | ||
<option name="CALL_PARAMETERS_WRAP" value="1" /> | ||
<option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" /> | ||
<option name="CALL_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" /> | ||
<option name="METHOD_PARAMETERS_WRAP" value="5" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The codestyle for Kotlin of Square and SquareAndroid are now identical except for this value. I didn't want to change it.
Gotta figure out a strategy to fix ~200 cash repos when we land this. |
Follows latest Square formatting rules: square/java-code-styles#84
This PR is basically reopening #82. I merged the settings that IntelliJ and KtLint export.