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

Fix: capitalize-headings, yaml-title, yaml-title-alias require two lint passes to resolve #1131

Merged
merged 2 commits into from
Aug 4, 2024

Conversation

tcoliver
Copy link
Contributor

Fixes #1130

I moved the yaml-title and yaml-title-alias rules to the runAfterRegularRules method. They immediately follow the capitalize-headings rule.

yaml-title needs to run after capitalize-headings since it may be
configured to use the first H1 heading as the title value.
yaml-title-alias should run after capitalize-headers and yaml-title
since the alias may depend on the H1 header.
@pjkaufman
Copy link
Collaborator

Hey @tcoliver , thanks for making a PR around this. I will plan on taking a look at it soon. I have not forgotten about this, but I have not made the time to take a look at it and verify that it does indeed work. I just need to double check the logic and we should be good to proceed form there if nothing else pops up.

Copy link
Collaborator

@pjkaufman pjkaufman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it will not break #647, so it should be fine.

@pjkaufman pjkaufman merged commit 616a83b into platers:master Aug 4, 2024
1 check passed
@tcoliver
Copy link
Contributor Author

tcoliver commented Aug 4, 2024

Glad to be of help! Thank you for all the work on this excellent tool. I'll be looking for ways to contribute again in the future.

@pjkaufman
Copy link
Collaborator

I'll look forward to it.

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.

Bug: capitalize-headings, yaml-title, yaml-title-alias require two lint passes to resolve
2 participants