Commit Graph

243 Commits

Author SHA1 Message Date
Dmitry Jemerov 79a509df7b Option to apply normal indent to children of 'if' expressions 2017-12-22 10:35:21 +01:00
Dmitry Jemerov 640bf22e4f Refactoring: extract 'continuationIf' method 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
Dmitry Jemerov 3394d675e5 Option to use continuation indent in argument lists 2017-12-11 17:58:02 +01:00
Dmitry Jemerov dc4e673fb1 Initial support for chained call wrapping options
#KT-21529 Fixed
2017-12-11 17:58:02 +01:00
Dmitry Jemerov 1a93d10697 Refactoring: use more specific block type in signatures 2017-12-11 17:58:02 +01:00
Dmitry Jemerov 3233d650c1 Refactoring: cleanup access to code style settings 2017-12-11 17:58:02 +01:00
Dmitry Jemerov ff99b921b7 Refactoring: work with ASTNodes in functional style 2017-12-11 17:58:02 +01:00
Dmitry Jemerov 389729cc50 Option for normal indent in supertype lists
#KT-21527 Fixed
2017-12-11 17:58:02 +01:00
Dmitry Jemerov 67cd4ed17a Don't indent closing parenthesis in conditions
#KT-21485 Fixed
2017-12-11 17:58:02 +01:00
Dmitry Jemerov 26d47a034e Don't indent closing parenthesis of a destructuring declaration
#KT-20758 Fixed
2017-12-11 17:58:02 +01:00
Dmitry Jemerov 4068b3d9b9 Add continuation indent for wrapped type aliases
#KT-21078 Fixed

fixup type alias
2017-12-11 17:58:02 +01:00
Dmitry Jemerov a1949e1d53 Add formatting rule for array literals
#KT-19599 Fixed
2017-10-26 14:10:12 +02:00
Alexey Sedunov fa4e4cbb42 Formatter: Insert new line before/after type alias
#KT-20766 Fixed
2017-10-24 15:43:51 +03:00
Dmitry Jemerov c2efdfe243 Add space before 'where' keyword
#KT-19213 Fixed
2017-10-11 12:25:53 +02:00
Alexander Podkhalyuzin 3f8170d369 Clean idea files generated on the gradle import, add them to .gitignore 2017-09-19 23:58:27 +02:00
Ilya Chernikov deda50dbbb Continue switching projects to improved dsl: sourceSets and test running 2017-09-19 21:37:26 +02:00
Ilya Chernikov 61dfb75e0e Implement Gradle Kotlin DSL build 2017-09-19 21:37:06 +02:00
Dmitry Jemerov 4e4291c586 Fix formatting of class headers when "blank lines after class
header" is enabled
2017-09-06 15:11:05 +02:00
Mikhail Glukhikh 7fb78a0372 Code cleanup: replace chained null-checks with safe-calls 2017-07-26 15:18:22 +03:00
Mikhail Glukhikh 951e8cd91a Code cleanup: unnecessary local variable applied 2017-07-21 18:58:48 +03:00
Dmitry Jemerov 9213c4a1ab EA-104855 - (1.1.4) NPE: KotlinCommonBlockKt.isFirstParameter 2017-07-20 12:50:12 +02:00
Dmitry Jemerov 951392005b Add options for wrapping local variable and property annotations
#KT-14950 Fixed
2017-07-19 15:03:00 +02:00
Dmitry Jemerov 050ff03b07 Implement wrapping options for enum constants
#KT-14126 Fixed
2017-07-19 15:02:59 +02:00
Dmitry Jemerov 7555bb6c3c Support formatting of 'where' clauses
#KT-14083 Fixed
2017-07-19 15:02:58 +02:00
Dmitry Jemerov 325e950bfe Reformat expression body property accessors
#KT-17394 Fixed
2017-07-19 15:02:52 +02:00
Nikolay Krasko 68e0727894 Force space between { and first enum entry (KT-18863)
#KT-18863 Fixed
2017-07-10 15:32:42 +03:00
Nikolay Krasko 7f8d6b3008 Don't move line and /**/ comments during reformat (KT-18805)
#KT-18805 Fixed
2017-07-10 15:32:42 +03:00
Dmitry Jemerov 5f9a33564a Implement option for wrapping method annotations 2017-07-07 16:48:31 +02:00
Dmitry Jemerov a379a814ba Implement option for wrapping class annotations 2017-07-07 16:48:31 +02:00
Dmitry Jemerov 6c62b60147 Implement option for wrapping parameter annotations 2017-07-07 16:48:31 +02:00
Dmitry Jemerov be15ee3c03 Add "Wrap extends/implements list" option 2017-07-07 16:48:30 +02:00
Dmitry Jemerov 722cc521a9 Add "Blank lines before }" option
#KT-15504 Fixed
2017-07-07 16:48:30 +02:00
Dmitry Jemerov 5c8a90fe85 "Blank lines after class header" option supported 2017-07-07 16:48:30 +02:00
Dmitry Jemerov 6a96ade02c Options for blank lines between 'when' branches
#KT-18607 Fixed
2017-07-07 16:48:29 +02:00
Dmitry Jemerov 8fe2858c6a Option to use normal indent in chained calls
#KT-18605 Fixed
2017-07-07 16:48:29 +02:00
Dmitry Jemerov 4fa75256b7 Options for wrapping parentheseses in calls (KT-18113) 2017-06-14 14:37:30 +02:00
Dmitry Jemerov 2e9a3e6d12 Option to use continuation indent in expression bodies (KT-9818) 2017-06-14 14:37:22 +02:00
Dmitry Jemerov f4c75e61ad Option to use continuation indent in parameter lists 2017-06-14 14:33:52 +02:00
Dmitry Jemerov a4916a3c00 NodeIndentStrategy: J2K and cleanup 2017-06-14 14:33:51 +02:00
Dmitry Jemerov 14edd7e357 NodeIndentStrategy: rename to .kt 2017-06-14 14:33:51 +02:00
Dmitry Jemerov fc2a1fce8b Remove line break between ) and : if there's a line break before ) 2017-06-14 14:33:42 +02:00
Dmitry Jemerov 2ce430d608 Refactor spacing rules representation for easier debugging 2017-06-14 14:33:41 +02:00
Dmitry Jemerov a0b5a3a8a2 Implement parenthesis wrapping options 2017-06-14 14:33:41 +02:00