Indent after comment line
See original GitHub issueAfter a comment line, if the block below is formatted, it gets unnecessarily indented.
Input:
// 1 result in DB by no type
Mockito.when(replacementRepository.findRandomArticleIdsToReview(Mockito.any(PageRequest.class)))
.thenReturn(new ArrayList<>(Collections.singletonList(randomId2)));
Output (0.4.0):
// 1 result in DB by no type
Mockito.when(
replacementRepository.findRandomArticleIdsToReview(Mockito.any(PageRequest.class))
).thenReturn(new ArrayList<>(Collections.singletonList(randomId2)));
Expected output:
// 1 result in DB by no type
Mockito.when(
replacementRepository.findRandomArticleIdsToReview(Mockito.any(PageRequest.class))
).thenReturn(new ArrayList<>(Collections.singletonList(randomId2)));
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Comments (indent: Indent and Format C Program Source)
indent attempts to leave boxed comments exactly as they are found in the source file. Thus the indentation of the comment is unchanged,...
Read more >IndentationError: unexpected indent after comment [duplicate]
Closed 4 years ago. I am trying to write some Python example code with a line commented out: user_by_email = session.query(User)\ ...
Read more >comment indentation can break code indentation
I feel that single line comments that are ALONE on their line should be indented to match the start of the previous line....
Read more >HTML Indentation, Spacing, and Comments
When you are writing HTML (or any other programming language), well-written code follows consistent indentation and spacing patterns.
Read more >Indent being added on line after comment
I have to hit Ctrl+Shift+Left to select the indent to get the caret to start at the beginning of the line... if I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 !
Don’t be sorry, it is really helpful to have your feedbacks! And we should improve our docs 😃