-
Notifications
You must be signed in to change notification settings - Fork 635
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
Write mode introduces too many spaces inside braces #2076
Comments
|
I made it add the space because that's how prettier does it and we're trying not to have the linters fight. Are you using a custom yamllint file? If not then we need to adjust the internal yamllint config. |
I'm not aware of using a custom yamllint config. |
Fixes: ansible#2076 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Fixes: ansible#2076 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Fixes: ansible#2076 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Fixes: ansible#2076 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Fixes: ansible#2076 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Fixes: ansible#2076 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Fixes: ansible#2076 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
…2077) * relax the yamllint rules on spaces inside braces for flow mappings Fixes: #2076 Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at> * add testcase for too many space Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at> * fix path to tool for regenerating test fixtures Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at> * fixup! relax the yamllint rules on spaces inside braces for flow mappings
Summary
ansible-lint --write
introduces extra spaces inside braces and complains about it afterwardsIssue Type
Ansible and Ansible Lint details
STEPS TO REPRODUCE
Run
ansible-lint --write
on a document already adhering to standardized spacing, quotes, etc.Desired Behavior
ansible-lint --write
should not format a document already adhering to standardized spacing, quotes, etc.The following document should not be changed.
Actual Behavior
Using the following example playbook:
and running just
ansible-lint --write
it reports:The file now looks like this:
Note the extra spaces inside the curly braces.
Running just
ansible-lint --write
again it now complains:The text was updated successfully, but these errors were encountered: