You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using "\r" in a string, ansible-lint reports spacing issue.
Issue Type
Bug Report
OS / ENVIRONMENT
Ubuntu 20.04 running WSL
ansible-lint --versionansible-lint 6.10.2 using ansible 2.13.6
ansible installation method: pip
ansible-lint installation method: pip
STEPS TO REPRODUCE
Create a playbook that looks like this:
---
- name: Test
hosts: localhost
tasks:
- name: Lint fails with spacing issue
ansible.builtin.debug:
msg: "\r"
- name: Lint fails with spacing issue sample two
ansible.builtin.debug:
msg: "blah\r"
- name: Lint okay
ansible.builtin.debug:
msg: "test message"
In vscode, it will highlight the jinja[spacing] lint warning
ansible-lint --offline test_lint.yml WARNING: ansible-lint is no longer tested under Python 3.8 and will soon require 3.9. Do not report bugs for this version.WARNING Skipped installing collection dependencies due to running in offline mode.WARNING Overriding detected file kind 'yaml' with 'playbook' for given positional argument: test_lint.ymlWARNING Listing 1 violation(s) that are fataljinja[spacing]: Jinja2 spacing could be improved: -> (warning)test_lint.yml:5 Jinja2 template rewrite recommendation: ``. Rule Violation Summary count tag profile rule associated tags 1 jinja[spacing] basic formatting (warning) Passed with min profile: 0 failure(s), 1 warning(s) on 1 files.
Desired Behavior
there should be no lint warning.
Actual Behavior
there a lint warning, it should not happen.
The text was updated successfully, but these errors were encountered:
Summary
when using "\r" in a string, ansible-lint reports spacing issue.
Issue Type
OS / ENVIRONMENT
Ubuntu 20.04 running WSL
STEPS TO REPRODUCE
Create a playbook that looks like this:
In vscode, it will highlight the jinja[spacing] lint warning
Desired Behavior
there should be no lint warning.
Actual Behavior
there a lint warning, it should not happen.
The text was updated successfully, but these errors were encountered: