Skip to content

fix: preserve multi-hash comments on ansible-lint --fix#5033

Open
bishalOps wants to merge 1 commit intoansible:mainfrom
bishalOps:fix/yaml-multi-hash-comment
Open

fix: preserve multi-hash comments on ansible-lint --fix#5033
bishalOps wants to merge 1 commit intoansible:mainfrom
bishalOps:fix/yaml-multi-hash-comment

Conversation

@bishalOps
Copy link
Copy Markdown

Found another bug while using ansible-lint --fix where any comment starting with ## (or ###, etc.) was getting mangled into # #. I swapped the existing logic for a small regex that just adds a space after the leading run of #s when one's missing, and otherwise leaves things alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant