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
Parseable output including severity and pep8 not working #1054
Comments
What was your expectation around this considering the pep8 format does not allow display of severity? |
Oh, I didn't know that because it works in previous version. I'm looking for a machine-readable format including severity. Is any alternative? |
Your best bet is to use github annotation format, as that one seems to be extensible, and we already support it. See https://ansible-lint.readthedocs.io/en/latest/usage.html#ci-cd I am not sure if we output severity with it but if not you can easily make a patch to include it. |
It look that severity isn't included in the output (tested). https://github.com/ansible/ansible-lint/blob/master/lib/ansiblelint/formatters/__init__.py#L127 , patch should be simply, like you said. |
I've created PR #1055. Is that what you thought? |
Summary
Parseable-severity mode together with parseable output in the format of pep8 doesn't show severity in output.
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Custom docker image based on
amazonlinux:2.0.20190508
with installed python 3.8.5STEPS TO REPRODUCE
ansible-lint -p --parseable-severity roles/test.yml
Desired Behaviour
This behavior is captured from ansible-lint v4.2.0.
Actual Behaviour
roles/test.yml
contents:The text was updated successfully, but these errors were encountered: