Nikolay Krasko
cdc0f60fe8
172: Restore KotlinCommonCodeStyleSettings behaviour for 172 Idea
...
There are no soft margins in CommonCodeStyleSettings.
2018-04-11 16:28:12 +03:00
Vyacheslav Gerasimov
7c02d55b23
Remove explicit jar specification from ide modules build scripts
...
They often change between ide versions and difficult to maintain
2018-04-09 21:47:48 +03:00
Alexey Tsvetkov
8a82c1618c
Use Plugins DSL in Kotlin Gradle scripts
...
When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
2018-03-26 16:09:29 +03:00
Yan Zhulanow
34d1611ed4
Add Pill support to compiler and IDE modules
2018-03-02 03:15:17 +03:00
Nikolay Krasko
1e567438a2
Store selected set of defaults in code style settings (KT-22252)
...
#KT-22252 In Progress
2018-02-11 16:50:20 +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
Nikolay Krasko
5a9ea89e9c
Collect statistics about used Kotlin formatter
2018-02-03 00:15:45 +03:00
Nikolay Krasko
209c66ca1b
Set better defaults on Imports tab in Code Style -> Kotlin (KT-22575)
...
"Top level symbols" and "Java Statics and Enum Members" are always
returned to 2 after saving to not-number option
#KT-22575 Fixed
2018-01-31 13:27:30 +03:00
Ilya Chernikov
7e21573cf4
Convert the rest of the project to intellij repo prepared in buildSrc
2018-01-30 17:06:13 +03:00
Ilya Chernikov
a4f28cd94f
Make all dependencies to idea sdk intransitive
2018-01-30 17:06:11 +03:00
Ilya Chernikov
0d264793ce
Convert idea plugin modules to intellij plugin
2018-01-30 17:06:07 +03: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
8c7f57ca83
Honor "Use continuation indent in argument lists" for indent by Enter
...
#KT-22121 Fixed
2018-01-09 15:41:21 +01:00
Dmitry Jemerov
d79ac58340
Refactoring: replace WrappingStrategy interface with lambda
2018-01-09 15:41:20 +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
69c8da7403
Cleanup: apply all inspection quickfixes
2018-01-09 13:54:56 +01:00
Dmitry Jemerov
6f722d647f
Reformat
2018-01-09 13:54:56 +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
7711f8e3a7
Add predefined code style for Kotlin style guide
2017-12-22 10:35:23 +01:00
Dmitry Jemerov
d69382f129
Don't apply indent on Enter after modifier list
...
#KT-9562 Fixed
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
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