question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Indent after comment line

See original GitHub issue

After 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
clementdessoudecommented, Dec 3, 2019

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 !

0reactions
clementdessoudecommented, Dec 5, 2019

Don’t be sorry, it is really helpful to have your feedbacks! And we should improve our docs 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found