Commit Graph

56 Commits

Author SHA1 Message Date
Valentin Kipyatkov 3028cec4cd More correct code transformations: do not perform formatter's job on yourself 2014-01-23 18:46:26 +04:00
Pavel V. Talanov 4ef7086e5c Formatter: force keyword to be on exactly next line if the corresponding option is set 2014-01-20 19:54:45 +04:00
Pavel V. Talanov 53d503e242 Formatter: support "catch on new line" and "finally on new line" options 2014-01-20 19:54:44 +04:00
Pavel V. Talanov 7dc7db04b3 Formatter: support "while on new line" option 2014-01-20 19:54:43 +04:00
Pavel V. Talanov 5caabc20f6 Formatter: support "else on new line" option 2014-01-20 19:54:42 +04:00
Pavel V. Talanov f65740f2bd Formatter: left brace formatting for "when" expression and "when" entries 2014-01-20 19:54:39 +04:00
Pavel V. Talanov 03ad7ff49a Formatter: improve indentation rules for when entries 2014-01-20 19:54:38 +04:00
Pavel V. Talanov 7afc9bc30d Formatter: left brace formatting in class/trait/class object/object/object literal declarations 2014-01-20 19:54:37 +04:00
Pavel V. Talanov e1dab0e1c7 Formatter: left brace formatting for function declaration 2014-01-20 19:54:36 +04:00
Pavel V. Talanov e0b1170dc6 Formatter: left brace formatting for "for in ..." 2014-01-20 19:54:35 +04:00
Pavel V. Talanov 2aea631c1b Formatter: left brace formatting for "do while" 2014-01-20 19:54:34 +04:00
Pavel V. Talanov 7687e3d61f Formatter: left brace formatting for "try/catch/finally" 2014-01-20 19:54:33 +04:00
Pavel V. Talanov d3f8b70aa6 Formatter: left brace formatting for "while" statement 2014-01-20 19:54:32 +04:00
Pavel V. Talanov b404812a77 Formatter tests: minor, enhance "IfSpacing" test 2014-01-20 19:54:31 +04:00
Pavel V. Talanov ae473ba3ab Formatter tests: minor, enhance test for function literal 2014-01-20 19:54:29 +04:00
Pavel V. Talanov 2d6f8aef4e Formatter: introduce "Put left brace on new line option", support this option for "if/else" expressions 2014-01-20 19:54:25 +04:00
Nikolay Krasko 80ab043d21 Tweak spacing in do-while 2013-11-13 19:08:53 +04:00
Nikolay Krasko dddde11c6a Configure spacing after 'while' in while statement 2013-11-13 19:08:52 +04:00
Nikolay Krasko 7587e8ffcb Insert space between ) and statement body 2013-11-13 19:08:51 +04:00
Nikolay Krasko c50804a3f3 Add spaces after ) and around 'else' in 'if' 2013-11-13 19:08:51 +04:00
Pavel V. Talanov 3e205d162e Formatting: exactly one space after if keyword 2013-10-29 21:03:39 +04:00
Pavel V. Talanov 77d316902c Formatting: exactly one space after for keyword 2013-10-29 21:03:38 +04:00
Andrey Breslav 2d01e93fa4 Make formatter put no indent after a line break inside/after a modifier list 2013-09-24 06:58:40 -07:00
Andrey Breslav 8952365ae3 Formatter test is generated now 2013-09-24 06:58:40 -07:00
sayon a3bfd25825 Formatter: now always adds space between reference expression and function literal. Test is included.
#KT-3932 fixed
2013-09-03 21:06:22 +04:00
sayon a0500f56d2 New setting and test: space before lambda arrow
#KT-3932 fixed
2013-09-03 21:05:17 +04:00
sayon 523a5bf6a9 New setting and test: space around arrow in function types 2013-09-03 21:04:22 +04:00
sayon 965265b8b8 Formatting: omit blank lines between 'when' and left brace. Test is included. 2013-09-03 21:03:17 +04:00
sayon f8b280ba57 New setting and test: space around arrow inside 'when' 2013-09-03 20:59:56 +04:00
Sergey Rostov f9e8683db5 KT-1545, KT-3161 KDoc formatter 2013-05-28 13:05:28 +04:00
Andrey Ponomarev c91cd9b962 New formatter option: Align in columns 'case' branches 2013-02-22 12:40:35 +04:00
Nikolay Krasko ab1095a84e Formatter: remove unnecessary spaces in value and type parameter lists 2012-09-18 19:26:53 +04:00
Nikolay Krasko e29182b2fb Don't indent { for functions on new lines 2012-09-18 19:26:52 +04:00
Nikolay Krasko 72fb2c0d02 KT-2242 Fix {<space>(a: Int) -> a } case
#KT-2242 Fixed
2012-09-18 19:26:51 +04:00
Nikolay Krasko 9c91acac74 KT-2242 formatting problems: function literal passed outside the parentheses - option for spaces in single line function literal
#KT-2242 Fixed
2012-08-21 16:16:23 +04:00
Nikolay Krasko cb0cf8e563 KT-1545 reformatting of kotlin code uses incorrect indentation for multi-line kdoc comments
#KT-1545 Open
2012-08-21 13:25:17 +04:00
Nikolay Krasko 2e92594462 KT-2242 formatting problems: function literal passed outside the parentheses
#KT-2242 Fixed
2012-08-21 12:54:53 +04:00
Nikolay Krasko b85300d90a KT-2572 Cursor position on Enter after 'try'
#KT-2575 Fixed
2012-08-20 20:13:58 +04:00
Nikolay Krasko 66984a5f23 Fix test with file rename 2012-06-28 00:48:44 +04:00
Nikolay Krasko 4a0b13d11e KT-2254 Incorrect indentation after = in val:
#KT-2254 fixed
2012-06-27 21:01:55 +04:00
Nikolay Krasko b5d5e42e5b KT-2217 Formatter fails to format unary minus
#KT-2217 fixed
2012-06-08 21:59:50 +04:00
Nikolay Krasko deb13344c0 Fix test and add special option for spacing around colon in type definitions 2012-05-23 19:29:18 +04:00
Nikolay Krasko ccb8c08684 Fix test and add special option for spacing around colon in type definitions 2012-05-23 18:44:23 +04:00
Alexander.Podkhalyuzin b5b9f7ba98 Fixed broken testdata. 2012-05-23 15:58:12 +04:00
Nikolay Krasko 5ac866ba3c KT-1912 Formatter: smart indent doesn't work in a function literal
#KT-1099 fixed
 #KT-1912 fixed
2012-05-11 18:36:33 +04:00
Nikolay Krasko a0d8ab6db5 KT-1712 Formatting for getters and setters
#KT-1712 fixed
2012-04-04 17:36:55 +04:00
Nikolay Krasko 0d1767fbf1 KT-1161 Formatter: indent parameters after function call on new line (not very beautiful but it will be refactored in future)
#KT-1161 fixed
2012-04-04 14:05:51 +04:00
Nikolay Krasko cc449bcdd8 - Formatter parameter alignment
- Change formatter testing framework
- Activate "Wrapping and Braces" tab
2012-03-30 19:23:16 +04:00
Nikolay Krasko ae1138c4ba Activate "around operators" space properties. Remove other from settings 2012-03-12 17:43:29 +04:00
Nikolay Krasko c21cdaf413 Start working with spaces:
KT-1532 IDEA should remove extra whitespaces when reformmating code
KT-1378 Code formatting: spaces around ':'

#KT-1532 fixed
#KT-1378 fixed
2012-03-11 22:11:55 +04:00