As requested in #23, this PR introduces the --preserve-comments flag. It allows to preserve preceding comments in a configuration file. However, it does not preserve inline comments. Example:
---
Foo:
- something # inline comment about Foo.something
# Comment about Bar
Bar:
- else
ruboclean --preserve-comments
---
# Comment about Bar
Bar:
- else
Foo:
- something
As requested in #23, this PR introduces the
--preserve-comments
flag. It allows to preserve preceding comments in a configuration file. However, it does not preserve inline comments. Example:ruboclean --preserve-comments