-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indent after comment line #308
Comments
Might be worth re-testing on master since 0.4.0 doesn't include #278 |
@clement26695: BTW it would nice to do a new release, since a lot of interesting things has landed in master 😉 |
I think I have retested against master and still get the same behaviour. |
I'll try to have a look when I have some time, probably next weekend. @murdos it was the plan to do one last weekend, but I got some computer issues unfortunately. I'll try to do one this weekend too ! |
Just tested with master branch. When I try to format this : class T {
void t() {
// 1 result in DB by no type
Mockito.when(replacementRepository.findRandomArticleIdsToReview(Mockito.any(PageRequest.class)))
.thenReturn(new ArrayList<>(Collections.singletonList(randomId2)));
}
} I got this: class T {
void t() {
// 1 result in DB by no type
Mockito
.when(
replacementRepository.findRandomArticleIdsToReview(
Mockito.any(PageRequest.class)
)
)
.thenReturn(new ArrayList<>(Collections.singletonList(randomId2)));
}
} with these options: --print-width 80
--tab-width 2 |
Sorry, I wasn't using the master version of java-parser. |
Don't be sorry, it is really helpful to have your feedbacks! And we should improve our docs :) |
After a comment line, if the block below is formatted, it gets unnecessarily indented.
Input:
Output (0.4.0):
Expected output:
The text was updated successfully, but these errors were encountered: