Warning about non-ascii space characters #4244
Unanswered
vincent-legoll
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got a strange warning that took me a while to diagnose:
I first thought it to be an ansible-lint bug.
But when trying to create a minimal reproducer, I found it to be a no-break space character in the playbook.
OS / ENVIRONMENT
freshly installed with pip in a new virtualenv under ubuntu 20.04
So I think a specific warning that searches for all non-standard whitespace in ansible files would help a lot.
Maybe it could be disabled for parts that are harmless (names, non-templated strings, etc)
Templated strings may have some legitimate usage for such whitespace, though.
In addidtion, the
jinja[spacing]
warning should not appear if the only difference between source and proposed change is whitespace modifications, and the above warning has been shown.Beta Was this translation helpful? Give feedback.
All reactions