Commit Graph

83 Commits

Author SHA1 Message Date
Alexey Sedunov 05a0481efa Formatter: Fix spacing between '=' and '{' in property accessors 2014-12-23 20:43:19 +03:00
Alexey Sedunov 8f2c543f7e Formatter: Add wrapping support for parameter/argument lists
#KT-6032 Fixed
2014-12-08 16:30:03 +03:00
Valentin Kipyatkov bfdb756e22 Fixed formatting of doc-comments for parameters 2014-10-31 21:08:52 +03:00
Valentin Kipyatkov cf04ba4943 Corrected test data 2014-10-31 21:07:51 +03:00
Valentin Kipyatkov 84ba96900a Fixed formatter to work correctly with comments inside declaration nodes 2014-10-31 21:07:51 +03:00
Nikolay Krasko d1fe9b71ef Make line break before '}' optional
#KT-6142 Fixed
2014-10-28 01:50:51 +04:00
Nikolay Krasko 0cd95b5514 Formatter: empty lines between declarations 2014-10-28 01:50:50 +04:00
Nikolay Krasko b06b3ab4c4 Insert empty lines after functions and properties (KT-4002)
#KT-4002 Fixed
2014-10-14 00:39:23 +04:00
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