-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Standardize YAML formatting #9142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change 3/3: targets to install and run yamlfmt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change 1/3: Configure yamlfmt
about the options
retain_line_breaks:: empty lines are reasonable IMO; we have lots of themforce_quote_style: most existing use double, least amount of changes
| - lint-protos | ||
| - lint-actions | ||
| - fmt-imports | ||
| - lint-yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change 2/3: invoke yamlfmt linter in CI
cdae60c to
0f1c663
Compare
What changed?
Adds and integrates
yamlfmt(Go-based, by Google).Anything not annotated was changed by
yamlfmt.Why?
Consistent YAML formatting. Reduce unrelated diffs caused by formatting in PRs.
How did you test it?