Skip to content

Conversation

@emmanuel-ferdman
Copy link
Contributor

@emmanuel-ferdman emmanuel-ferdman commented Nov 27, 2025

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.

@ssbarnea ssbarnea merged commit 6c7b664 into ansible:main Dec 10, 2025
20 of 21 checks passed
@CS-cwhite
Copy link

This works great! Thanks @emmanuel-ferdman !

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

Labels

Projects

Archived in project

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)

3 participants