Skip to content

Preserve comments for a file with only comments #183

Open
@lyz-code

Description

@lyz-code

Description

When a file has only comments, the comments are removed

Steps to reproduce

Run fix_code over:

---
# Keep comments!

Current behavior

The file is transformed to:

---
...

Desired behavior

The file is unchanged

Additional context

@rsnodgrass created the unit test in this PR which was closed due to inactivity, if you want to implement this, you can follow in that branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions