Hi, I need this! Currently I do it by hand like this:
for file in src/main/resources/*.yml do yq eval -i 'sortKeys(..)' "$file" done
But the time has come to automate this. However, I don't want to sort my .gitlab-ci.yml file, that would get rather confusing. Is there a way to exclude files or paths?
BTW maybe you should list it here https://pre-commit.com/hooks.html
Hi, I need this! Currently I do it by hand like this:
for file in src/main/resources/*.yml do yq eval -i 'sortKeys(..)' "$file" doneBut the time has come to automate this. However, I don't want to sort my
.gitlab-ci.ymlfile, that would get rather confusing. Is there a way to exclude files or paths?BTW maybe you should list it here https://pre-commit.com/hooks.html