yamlfix icon indicating copy to clipboard operation
yamlfix copied to clipboard

allow for adding of ending of file

Open djdanielsson opened this issue 2 years ago • 3 comments
trafficstars

Description

technically for a yaml file you are supposed to start it with '---' which you have an option for but you do not have an option for ending the file with '...'

Possible Solution

create an option (off by default because it is less popular) to add ... to any yaml file that it is missing on

Related Issue

N/A

djdanielsson avatar Apr 21 '23 20:04 djdanielsson

Hi @djdanielsson thank you for taking the time to open a PR. I was not aware of the ... file ending, can you give a link to the official docs showing its usage?

I'm fine with your proposed solution, however it won't be between my priorities to develop. I'll review any PR you or other make though :)

lyz-code avatar Apr 24 '23 08:04 lyz-code

https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.document_end

djdanielsson avatar Apr 24 '23 11:04 djdanielsson

Thanks @djdanielsson it looks good

lyz-code avatar Apr 28 '23 10:04 lyz-code