Commit Graph

75 Commits

Author SHA1 Message Date
Nikolay Krasko 513ec93060 Formatting: Move '}' to next line in when 2014-06-25 14:22:55 +04:00
Nikolay Krasko 391d40e792 Fix error alignment for binary expression parts 2014-05-16 17:10:04 +04:00
Nikolay Krasko d4ddf06ebd Fix problem with alignment in assignments and other binary expressions 2014-05-16 17:10:04 +04:00
Nikolay Krasko 356cb80e7f Indent for multideclarations 2014-05-16 17:10:03 +04:00
Nikolay Krasko b958e0d6b8 Allow empty blocks for classes and function literals 2014-05-16 17:10:02 +04:00
Nikolay Krasko 3d588acd2d Add space between 'when' and '(' 2014-05-16 17:10:02 +04:00
Nikolay Krasko 9eb2615ac3 Don't remove linebreak after smb. else's statement } 2014-05-16 17:10:00 +04:00
Nikolay Krasko 8eb8e5a928 Fix spacing after return (KT-4947)
#KT-4947 Fixed
2014-05-16 17:10:00 +04:00
Nikolay Krasko 109f7992b4 Format functions with function literal arguments (KT-2934)
#KT-2934 Fixed
2014-05-16 17:09:58 +04:00
Nikolay Krasko 2b847cd885 Formatting enum delegations lists 2014-05-16 17:09:57 +04:00
Nikolay Krasko 2a693bcada Formatting index calls 2014-05-16 17:09:54 +04:00
Nikolay Krasko cd3aa06a83 Fix 'In multiline class declaration the indent before parent's name is destroyed' (KT-3848)
#KT-3848 Fixed
2014-05-16 17:09:53 +04:00
Nikolay Krasko 5e50b98103 Fix comment to KT-3370 about no formatting of spaces around colon in objects
#KT-3370 Fixed
2014-05-16 17:09:52 +04:00
Nikolay Krasko 17699f7f0e Fix 'Formatter doesn't remove redundant spaces between modifiers, name, and opening brace'
#KT-3370 Fixed
2014-05-16 17:09:52 +04:00
Nikolay Krasko d49d42a409 Add spaces around elvis operator 2014-05-16 17:09:51 +04:00
Nikolay Krasko 45013ce8af Fix formatting for multiline binary expressions
#KT-4797 Fixed
2014-05-16 17:09:50 +04:00
Nikolay Krasko 195d4c54bf Indent for ?. calls (KT-3913)
#KT-3913 Fixed
2014-05-16 17:09:49 +04:00
Ilya Ryzhenkov 64b4c2d49b Fix scripting formatter to avoid extra indent in invisible block node. 2014-03-24 18:17:51 +04:00
Pavel V. Talanov 8e264a1419 Test for formatting loop parameter with explicit type 2014-03-24 17:05:58 +04:00
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