Commit Graph

160 Commits

Author SHA1 Message Date
Nikolay Krasko 74bc440e44 Remove all that left from 173 branch 2019-01-18 19:42:43 +03:00
Nikolay Krasko 046a0e059c Always add last version of idea for which change is needed to BUNCH
BUNCH directive should contain last idea IDEA version this change is
meant for.
2019-01-18 19:42:43 +03:00
Vyacheslav Gerasimov 2157c777b3 Remove obsolete bunch fixes for 173 & as31 2019-01-14 21:29:03 +03:00
Vyacheslav Gerasimov 818910267e Remove 173 bunch files 2019-01-14 21:29:02 +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
Nikolay Krasko 073f4f51fd Clean accidentally committed temporary code 2018-09-17 11:28:22 +03:00
Nikolay Krasko 782aa94513 Bad indentation after annotation in incomplete declaration (KT-22322)
Same behavior is for any modifier in incomplete declaration.

 #KT-22322 Fixed
2018-09-16 15:52:34 +03:00
Nikolay Krasko 462000ae19 Fix code style applier (KT-23400)
- Stop removing defined schemes and clone settings before modification
- Clone code styles before modification
- Don't bother users that already have needed code style with settings change
2018-09-10 19:07:36 +03:00
Nikolay Krasko 69aa6d399e Forgotten utility for getting Kotlin code style defaults 2018-09-10 17:49:39 +03:00
Nikolay Krasko 1820028086 Refactoring: extract method for applying codestyle from string (KT-23400) 2018-09-10 13:03:41 +03:00
Nikolay Krasko 921af44cb9 Import code style if gradle.properties has kotlin.code.style option (KT-23400) 2018-09-07 20:15:04 +03:00
Nikolay Krasko f94ff3dc26 Implement transition project code style to predefined code style (KT-23400) 2018-09-07 20:15:04 +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 f9bba3ca86 Reformat & cleanup: kotlinSpacingRules 2018-08-20 13:21:28 +03:00
Mikhail Glukhikh 4fd8d3b480 Add formatting rule "new line between { and when entry" 2018-08-20 13:21:22 +03:00
Nikolay Krasko 563b2f13a3 Better notification logic and explicit code style apply (KT-23400) 2018-08-10 18:45:30 +03:00
Nikolay Krasko 2924bd80d9 Minor: move methods 2018-08-10 18:45:29 +03:00
Nikolay Krasko 5aacd181fa Restore old code style settings action (KT-23400)
Can't use `KotlinCodeStyleSettings` instead `KtCodeStyleSettings`,
because current `KotlinCodeStyleSettings` class is already used in third
party plugin.
2018-08-10 18:45:28 +03:00
Nikolay Krasko a1759fe2ab Load kotlin formatter settings with obsolete defaults for restore (KT-23400) 2018-08-10 18:45:24 +03:00
Nikolay Krasko a22f4232c0 Add information about obsolete code style usage (KT-23400) 2018-08-10 18:45:23 +03:00
Nikolay Krasko 17b88a28a0 Utility for detection if new code style is set by default (KT-23400)
Need this because some code should work differently before and after
applying new Kotlin code style defaults.
2018-08-10 18:45:22 +03:00
Vyacheslav Gerasimov 53b1a8bd37 Remove hacks introduced for 172 platform compatibility 2018-08-02 19:32:18 +03:00
Vyacheslav Gerasimov a2bf417d75 Remove 172 bunchset 2018-08-02 19:32:18 +03:00
Vyacheslav Gerasimov 2ec7c4fd0d Update platform versions for 181, 182, as32, as33 plugins 2018-07-31 19:27:23 +03:00
Nikolay Krasko d709b03160 Load/Save for old Intellij formatting settings (KT-22252)
#KT-22252 In Progress
2018-07-11 14:25:24 +03:00
Nikolay Krasko 6a4d2c1fdb Predefined obsolete code style (KT-22252)
#KT-22252 In Progress
2018-07-11 14:25:24 +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
Nikolay Krasko f8d352c3d0 Fix auto-indent for when entry (KT-24743)
#KT-24743 Fixed
2018-06-08 14:44:07 +03:00
Nikolay Krasko 580e2972db Initial settings for incompatible API inspection 2018-05-17 12:27:30 +03:00
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