Open ssbarnea opened 4 years ago
Possible dupes: #246, #429.
Are there any updates on this issue. Is it possible to add the deprecation warnings as linting errors? Or are these warnings still not collectible from Ansible-core as stated here https://github.com/ansible/ansible-lint/issues/246#issuecomment-690120328?
I also see in the ansible-lint docs there is a section for deprecated-module rules https://ansible.readthedocs.io/projects/lint/rules/deprecated-module/ but this issue describes ansible-lint not being able to detect deprecated modules. Should this be included in the documentation if it is currently not supported or is there a case where ansible-lint can detect deprecated modules?
We already identify some of these, please mention if you spot others with latest version of linter and core.
Issue Type
Desired Behaviour
Ansible can raise various DeprecationWarning exceptions while called by ansible-lint, and we should capture these and raise them as linting errors.
Rationale: the linting is the best place to raise these as errors because it does not run in production. In many cases users may even disable warnings in Ansible for deployments.
Obviously that when implemented as a rule, we should be able disable it just like the others.
Current Behaviour
Warnings can be seen on screen but the linter has no clue about them and the final result is still a success.
Examples: