Commit graph

13 commits

Author SHA1 Message Date
Pham Huy Hoang
1281601cb4
feat: add indents for annotation defs (#4828)
- Add indent for `@interface` and `@Annotation(...)`
- Add notes for indent queries
2023-06-04 13:28:41 +09:00
Daniel Woznicki
7947a2ccf1
fix: Java indent for multiple line arguments (#4449)
* fix Java indent for multiple line arguments, fixes #4448, add an additional test for methods with arguments on multiple lines

* Satisfy StyLua check

---------

Co-authored-by: Daniel Woznicki <danwoz@nettoolkit.com>
2023-03-06 18:10:31 -05:00
Daniel Woznicki
f84a634ffd Changed quotes to appease stylua 2022-04-04 06:58:26 +02:00
Daniel Woznicki
e1f8a8a6f8 Fixed incorrect Java indentation for method chaining 2022-04-04 06:58:26 +02:00
Daniel Woznicki
82389e52b6 Added test for known indent failure when tree is in broken state 2022-03-01 21:12:14 +01:00
Daniel Woznicki
3d6f2637a2 Made block comment indent @auto so that new lines line up nicely with existing comment block
Previous indentation:
    /**
    *
    */

    New indentation:
    /**
     *
     */
2022-03-01 21:12:14 +01:00
Daniel Woznicki
9f78c9f0ad Added test case for broken trees, plus partial test coverage 2022-03-01 21:12:14 +01:00
Daniel Woznicki
e23f5d48be Modified Java indent rules to stop ignoring block comments because javadoc blocks were defaulting to indent 0 2022-03-01 21:12:14 +01:00
Daniel Woznicki
bf2493f5e1 Added fix for Java interfaces not being indented properly 2022-03-01 21:12:14 +01:00
Daniel Woznicki
18c558fd92 Fixed a bug where indentation was not correct for class/enum bodies that had an annotation 2022-02-25 08:03:43 +01:00
Daniel Woznicki
1b47af43ce Fixed a bug where Java enum body indentation was not correct
Added test for Java enum indentation
2022-02-25 08:03:43 +01:00
Daniel Woznicki
8f04c2ad2d Removed newline causing sylua lint check to fail 2022-02-25 00:58:59 +01:00
Daniel Woznicki
b425a9c813 Added fix for incorrect Java indentation after a closing "}" in a method declaration
Added tests for Java indentation, including one for issue 2571
2022-02-25 00:58:59 +01:00