Dmitry Gridin
e72fb755a0
LineIndentProvider: support control flow constructions
...
Part of #KT-22211
2020-06-15 16:25:54 +07:00
Dmitry Gridin
262c9e6858
TrailingCommaPostFormatProcessor: should work with call-site in limited mode
...
* remove useless comma
* format call if comma exists
#KT-39079 Fixed
2020-05-27 11:24:06 +00:00
Dmitry Gridin
86827dfc92
TrailingCommaVisitor: adapt to TrailingCommaContext
...
#KT-39123 Fixed
2020-05-27 11:24:05 +00:00
Dmitry Gridin
9beb36ca2b
Code style: add option for blank lines before declarations
...
#KT-39024 Fixed
#KT-37420 Fixed
#KT-37891 Fixed
2020-05-20 02:22:53 +00:00
Sinan Kozak
3f8ffb5ea7
KT-24750 Blank line after class header formatter should use user setting
2020-04-23 18:48:38 +07:00
Dmitry Gridin
585177bcf7
Formatter: fix indent for multiline expression in string template
...
#KT-35359 Fixed
2020-04-14 13:54:12 +00:00
Igor Yakovlev
bd9877cc62
Rename testdata from DestructuringDeclarations to DestructionDeclarations
2020-03-26 12:35:49 +03:00
Dmitry Gridin
7a3f6f5312
Formatter: fix continuation indent in call chain
...
#KT-37545 Fixed
2020-03-18 12:37:28 +00:00
Dmitry Gridin
50c2c38624
Tests: fix some tests in formatter for AS
2020-02-26 13:51:47 +07:00
Dmitry Gridin
feaa53c4f2
Formatter: shouldn't format property chains
...
#KT-36387 Fixed
#KT-36466 Fixed
2020-02-25 16:48:33 +07:00
Dmitry Gridin
cb66625688
TrailingComma: fix case of when without expression or property
...
#KT-34744
#KT-36393 Fixed
2020-02-06 23:55:59 +07:00
Dmitry Gridin
b5d0956a5e
Move call-site trailing comma to registry
...
#KT-34744
2020-02-04 21:34:53 +07:00
Dmitry Gridin
c34b417d0c
Fix tests after disabling trailing comma
...
#KT-34744
2020-02-04 21:34:53 +07:00
Dmitry Gridin
c5c035b67c
TrailingCommaPostFormatProcessor: fix comments position before comma
...
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin
9511348497
TrailingCommaPostFormatProcessor: should be completed in one round
...
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin
8a45d2eb58
Formatter: add line break between comma and semicolon
...
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin
b72da6c4fc
Formatter: support trailing comma in destruction declarations
...
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin
96a11707ca
Formatter: support trailing comma in lambda value parameters & fix comments in KtParameter
...
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin
d013fc2234
Formatter: support trailing comma in when entry
...
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin
4adfaab3ec
Formatter: support trailing comma in lambda parameters
...
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin
07bda5a759
Formatter: support trailing comma in collection literal expression
...
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin
ccd780c008
Formatter: support trailing comma in type arguments
...
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin
b99c7f8d14
Formatter: support trailing comma in type parameters
...
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin
58058eef21
Formatter: support trailing comma in indexing suffix
...
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin
c195cd46f2
Formatter: support trailing comma in value arguments
...
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin
13ae4a28a8
Formatter: support trailing comma in value parameters
...
#KT-34744
2020-01-17 21:02:52 +07:00
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