Skip to content
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

Sort Yaml #268

Merged
merged 6 commits into from
Jul 9, 2022
Merged

Sort Yaml #268

merged 6 commits into from
Jul 9, 2022

Conversation

pjkaufman
Copy link
Collaborator

@pjkaufman pjkaufman commented Jul 9, 2022

Fixes #170
Fixes #151

Allows for the sorting of YAML frontmatter. It will remove blank lines since it does not know how to sort them.

Changes Made:

  • Added a new rule for sorting yaml
  • Added UTs for it
  • Updated yaml value regex to allow for yaml with blank lines in it
  • Updates date modified if the yaml is updated and the date modified key is set to be updated

@pjkaufman pjkaufman self-assigned this Jul 9, 2022
@pjkaufman pjkaufman marked this pull request as ready for review July 9, 2022 21:09
@pjkaufman pjkaufman merged commit 8cc28e8 into platers:master Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule suggestion: Sort YAML attributes FR: Allow for Sorting YAML Keys
1 participant