Skip to content
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

Opening brace auto-fix removes code comments #5751

Closed
rivera-ernesto opened this issue Aug 14, 2024 · 1 comment
Closed

Opening brace auto-fix removes code comments #5751

rivera-ernesto opened this issue Aug 14, 2024 · 1 comment
Assignees
Labels
bug Unexpected and reproducible misbehavior.

Comments

@rivera-ernesto
Copy link

New Issue Checklist

Bug Description

Applying auto-fix "kills" code comments when moving the opening brace to the same line, which may not be desirable as comments could provide relevant code information and should be preserved.

Before auto-fix:

if error.localizedDescription.hasPrefix("CLFC-01449") // Another item with the same name exists
{
    // ...
 }

After auto-fix:

if error.localizedDescription.hasPrefix("CLFC-01449") {
    // ...
 }
@SimplyDanny SimplyDanny added the bug Unexpected and reproducible misbehavior. label Aug 18, 2024
@mildm8nnered mildm8nnered self-assigned this Sep 1, 2024
@mildm8nnered
Copy link
Collaborator

Resolved by #5780

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

No branches or pull requests

3 participants