Provide the shorter alternative option (-S) for the --skip-ansible-lint option for better usability. -s (lowercase) was not chosen because it is used as the --strict option in ansible-lint.
Testing
Run ansible-content-parser with -S option and verify the report.txt file in the output directory does not contain outputs from ansible-lint. A Unit test is also included in this PR.
Steps to test
Build & install the updated code
Change to a work directory like /var/tmp
Download the PR branch:
git clone git@github.com:ansible/ansible-content-parser.git
cd ansible-content-parser/
git checkout 'ttakamiy/skip-ansible-lint-short-option'
Make sure python3 > 3.10 and create & activate venv
Issue: No JIRA issue opened for this.
Description
Provide the shorter alternative option (
-S
) for the--skip-ansible-lint
option for better usability.-s
(lowercase) was not chosen because it is used as the--strict
option inansible-lint
.Testing
Run
ansible-content-parser
with-S
option and verify thereport.txt
file in the output directory does not contain outputs fromansible-lint
. A Unit test is also included in this PR.Steps to test
Build & install the updated code
/var/tmp
pip
and install dependenciestox
to build installable images (it also runs unit tests)tox
ansible-content-parser
with the--help
option and verify the new-S
option shows upansible-content-parser
with the-S
option against a simple sample projectout/report.txt
to verify there is no outputs fromansible-lint
Scenarios tested
See the "Steps to test" section.