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
ansible installation method: one of source, pip, OS package
ansible-lint installation method: one of source, pip, OS package
STEPS TO REPRODUCE
When the ansible-lint runs with write (--fix) enabled it makes recommendation with failures and modified files, and on next ansible-lint run on the same repo content it generates recommendation again, and so on.
And, thus with each new run ansible-lint shows new modified files which is a breaking change.
1st run:
WARNING The following filters were mocked during the run: network.bgp.health_check_view
Read documentation for instructions on how to ignore specific rule violations.
Modified 3 files.
Rule Violation Summary
count tag profile rule associated tags
1 jinja[spacing] basic formatting (warning)
15 var-naming[no-role-prefix] basic idiom
1 name[casing] moderate idiom
Failed: 16 failure(s), 1 warning(s) on 46 files. Last profile that met the validation criteria was 'min'.
...
2nd run:
Read documentation for instructions on how to ignore specific rule violations.
Modified 2 files.
Rule Violation Summary
count tag profile rule associated tags
1 jinja[spacing] basic formatting (warning)
15 var-naming[no-role-prefix] basic idiom
1 name[casing] moderate idiom
Failed: 16 failure(s), 1 warning(s) on 46 files. Last profile that met the validation criteria was 'min'.
...
And, this continues with each new run. Here's the repo link against which I tested the scenario: CloneSandbox.
Summary
Ansible lint latest release (6.21.0) generates recommendation multiple times.
Issue Type
OS / ENVIRONMENT
mac os
ansible-lint --version
6.21.0
STEPS TO REPRODUCE
When the
ansible-lint
runs with write (--fix) enabled it makes recommendation with failures and modified files, and on nextansible-lint
run on the same repo content it generates recommendation again, and so on.And, thus with each new run
ansible-lint
shows new modified files which is a breaking change.1st run:
2nd run:
And, this continues with each new run. Here's the repo link against which I tested the scenario: CloneSandbox.
Default Config file:
Cmd run:
ansible-lint --format md --config-file ansible-lint.yml
Desired Behavior
Ansible-lint should run and show recommendation in one go and share all the modified files in one run itself.
Actual Behavior
Ansible-lint runs and show recommendation but with each new run it shows new recommendations and share new modified files with each new run.
The text was updated successfully, but these errors were encountered: