dbt-labs / dbt-labs/dbt-autofix
[Feat] Respect Line Breaks and Comments
- Dominant language
- Python
- Stars
- 88
- Forks
- 19
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 13
Description
I have recently done the work to update our schema from 1.9 to 1.11, and it was painful becsaue I could not use the autofix tool. We had over 2000 changes that needed to be made but the autofix tool did more than just correct the deprications, it also would reformat the yaml. For use the linebreaks and comments within the yaml files are part of the code, they enhance human readability dramatically that is the advange of yaml over JSON for applications like this. The only way I could use the tool was to export the dry run changes to a txt file and then use that to find where the errors were.
So here is my quest: enhance the tools to respect existing line breaks and comments. I would let more projects (ours is large and old) be able to use the tool to make migration more efficient.
Contributor guide
Assessment
This issue has not been assessed yet.