Dmitry Gridin
31596f0d0b
Formatter: fix some cases of call chain with wrap first call chain
...
#KT-35388 Fixed
2019-12-11 18:00:39 +07:00
Dmitry Gridin
e7ff0315d4
Formatter: fix line break before value parameter with annotation
...
#KT-23811 Fixed
2019-12-11 17:57:11 +07:00
Dmitry Gridin
4b98430058
Formatter: fix line break after package & file annotation
...
#KT-23957 Fixed
2019-11-29 21:09:04 +07:00
Dmitry Gridin
70185ba2a6
Formatter, NJ2K: fix indent for comments inside function literals
...
#KT-4194 Fixed
#KT-31881 Fixed
#KT-34673 Fixed
#KT-35152 Fixed
2019-11-29 16:28:59 +07:00
Dmitry Gridin
249789d6eb
Formatter: add test for enum entry with comment
...
Relates to #KT-15980
2019-11-27 15:01:44 +07:00
Dmitry Gridin
b40a888f1d
Formatter: fix line break between declarations with annotations
...
#KT-35093 Fixed
#KT-35106 Fixed
2019-11-26 19:40:51 +07:00
Dmitry Gridin
bfd539d5d1
Formatter: fix line break between declarations with comment
...
#KT-12490 Fixed
#KT-35088 Fixed
2019-11-26 19:40:51 +07:00
Dmitry Gridin
b6b755506c
Formatter: support Chop down if long for Chained method calls
...
#KT-23929 Fixed
#KT-33553 Fixed
2019-11-26 19:40:51 +07:00
Dmitry Gridin
d321f4626f
Formatter: fix line break before OperationReference in elvis
...
#KT-22362 Fixed
2019-11-05 20:13:11 +07:00
Dmitry Gridin
247619c565
Formatter: fix line break between label and property
...
#KT-22273 Fixed
2019-11-05 20:13:11 +07:00
Toshiaki Kameyama
d75b938089
Formatter: don't format elvis operator in string template
...
#KT-34049 Fixed
2019-10-31 18:34:42 +07:00
Toshiaki Kameyama
9f6e88d571
Formatter: format around safe cast operator as? (KT-32324)
...
#KT-32324 Fixed
2019-07-05 12:57:48 +03:00
Toshiaki Kameyama
44e9090931
Formatter: format between type reference and 'by' keyword (KT-32277)
...
#KT-32277 Fixed
2019-07-05 12:57:47 +03:00
kenji tomita
e1f26ffc74
Remove spaces between accessor and its parameter list in formatter (KT-30393)
...
#KT-30393 Fixed
2019-03-19 16:09:07 +03:00
Nikolay Krasko
571ee4a1fe
Don't ruin indentation for comments inside expression declarations (KT-23295)
...
#KT-23295 Fixed
2018-12-26 15:39:40 +03:00
Nikolay Krasko
e0d3abc819
Do not indent and align initializer list in enums (KT-28070)
...
#KT-28070 Fixed
2018-12-07 18:32:07 +03:00
Nikolay Krasko
05b2443988
Make assignment indent conforms with indent for expression bodies (KT-28484)
...
Do not make plain list of binary expression for assignment expressions.
#KT-28484 Fixed
2018-11-29 13:31:07 +03:00
Toshiaki Kameyama
e671318653
Formatting: add line break between '{' and enum entry (KT-28227)
...
#KT-28227 Fixed
2018-11-17 01:26:27 +03:00
Nikolay Krasko
6f719a9460
Use binary expression as parent for better spacing (KT-27717)
...
When BINARY_EXPRESSION is used as parent, spacing rules for it are applied.
There're no rules for OPERATION_REFERENCE on the other side.
#KT-27717 Fixed
2018-11-01 12:24:02 +03:00
Nikolay Krasko
2684974a33
Single indent for multi-declarations for official codestyle (KT-27847)
...
#KT-27847 Fixed
2018-11-01 12:24:01 +03:00
Nikolay Krasko
1be491504a
Fix formatting for when with subjects (KT-27027)
...
#KT-27027 Fixed
2018-09-26 13:35:36 +03:00
Mikhail Glukhikh
ea74b37b5b
Insert new line between annotation and type alias or sec. constructor
...
#KT-26377 Fixed
2018-08-30 18:30:47 +03:00
Mikhail Glukhikh
4fd8d3b480
Add formatting rule "new line between { and when entry"
2018-08-20 13:21:22 +03:00
Nikolay Krasko
449069b1b7
Attach preceding line comments to property accessors (KT-25417)
...
#KT-25417 Fixed
2018-08-02 14:38:25 +03:00
Nikolay Krasko
8e31113a4f
Ident elvis with normal ident in Kotlin code style (KT-25008)
...
#KT-25008 Fixed
2018-06-22 19:19:13 +03:00
Nikolay Krasko
1973860e70
Indent content of when (KT-14066)
...
#KT-14066 Fixed
2018-06-22 19:19:12 +03:00
Dmitry Jemerov
3aaad0c21d
Indent default parameter values
...
#KT-22508 Fixed
2018-02-09 10:49:02 +01:00
Dmitry Jemerov
5bb195df9b
No space between label and lambda in labeled expressions
...
#KT-22301 Fixed
2018-02-09 10:49:01 +01:00
Dmitry Jemerov
8f9b818e43
Do not indent closing bracket of array access expression
...
#KT-22641 Fixed
2018-02-09 10:49:00 +01:00
Dmitry Jemerov
36f5525b12
Call chain indentation logic that actually makes sense
...
#KT-22346 Fixed
2018-02-09 10:48:51 +01:00
Dmitry Jemerov
2c88b26034
Group all call chain-related tests in a single directory
2018-02-09 10:48:48 +01:00
Dmitry Jemerov
ca57309374
Temp revert fix for KT-10591 as it causes non-obvious test breakage
2018-01-17 11:39:35 +01:00
Dmitry Jemerov
106e1b8661
Don't include unindented comments preceding a function into its text range
...
#KT-10591 Fixed
2018-01-16 17:54:29 +01:00
Dmitry Jemerov
1b6f6e8bf7
Don't indent block comments of typealiases
...
#KT-22230 Fixed
2018-01-16 17:54:16 +01:00
Dmitry Jemerov
67897d9b3d
Don't wrap argument list containing anonymous functions
...
Just like for objects and lambdas, don't consider line breaks inside
anonymous functions as line breaks inside argument list
2018-01-09 15:41:18 +01:00
Dmitry Jemerov
a5cc9809ac
Improved logic for chained lambda indentation
...
#KT-22071 Fixed
2018-01-09 15:41:17 +01:00
Dmitry Jemerov
6299e0e941
Check correct element to determine if 'if' rbrace needs wrapping
...
#KT-22093 Fixed
2018-01-09 13:54:56 +01:00
Dmitry Jemerov
6208c69c72
Add option for wrapping closing paren in multiline if conditions
2017-12-22 10:35:23 +01:00
Dmitry Jemerov
43ef113b7a
Correctly apply annotation wrap before modifier keyword
...
#KT-20314 Fixed
2017-12-22 10:35:22 +01:00
Dmitry Jemerov
fa19bd6d9b
Apply indent of continuation call start to its children
...
#KT-15099 Fixed
2017-12-22 10:35:22 +01:00
Dmitry Jemerov
5652fa762f
Force no line break after dot in chained calls
...
#KT-20362 Fixed
2017-12-22 10:35:22 +01:00
Dmitry Jemerov
06fa61bb6f
Line breaks in objects and lambdas don't trigger call paren wrapping
...
#KT-19727 Fixed
2017-12-22 10:35:22 +01:00
Dmitry Jemerov
79a509df7b
Option to apply normal indent to children of 'if' expressions
2017-12-22 10:35:21 +01:00
Dmitry Jemerov
44ee228ac9
Don't wrap parentheses in long argument list containing only object
2017-12-22 10:35:21 +01:00
Dmitry Jemerov
900ec82614
Fix indent of expressions following elvis operator
2017-12-11 17:58:02 +01:00
Dmitry Jemerov
87d2d16cda
"Use continuation indent for expression body" for prop initializers
2017-12-11 17:58:02 +01:00
Dmitry Jemerov
eacd010e7e
Option to wrap elvis expressions
...
#KT-21720 Fixed
2017-12-11 17:58:02 +01:00
Dmitry Jemerov
d1daca2560
No line break before = in property initializer and function expr body
2017-12-11 17:58:02 +01:00
Dmitry Jemerov
ab99bf843a
Implement option for wrapping assignment statements
...
#KT-21718 Fixed
2017-12-11 17:58:02 +01:00
Dmitry Jemerov
947833cad6
Add wrap option for expression body functions
...
#KT-21470 Fixed
2017-12-11 17:58:02 +01:00