Skip to content

Conversation

@emmanuel-ferdman
Copy link

PR Summary

This PR fixes adds autofix support for the yaml[comments] rule when comments are missing a space after #. The fix adds the missing space during YAML formatting in FormattedEmitter.write_comment() and marks the rule as fixed to avoid the "Rule specific fix not applied" error.

Fixes #4831.

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.

--fix does not fix yaml[comments] errors (Python 3.12, ansible-lint 25.9.2 and 25.9.3.dev9)

1 participant