Ansible-lint

Latest version: v24.2.3

Safety actively analyzes 625513 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 15 of 16

5.0.0

Changes

This is a major new version that will surely break for users that have custom rules. It will also require most users to update the way they install the linter as they now need to mention which version of Ansible they want to use it with.

For guidance regarding upgrading please [read the docs](https://ansible-lint.readthedocs.io/en/latest/) and consult https://github.com/ansible-community/ansible-lint/discussions/1150

Please note that the changes listed before do not contain those from the pre-releases made since last stable release, read all.

Minor Changes

* Allow mocking of galaxy roles (1320) ssbarnea
* Add ability to mock roles from within collections (1318) ssbarnea
* Add offline mode for skipping requirements installation (1319) ssbarnea
* Add ability to mock modules from collections (1316) ssbarnea
* Add codeclimate formatter (json) (1308) thushjandan
* Make all rule identifiers text based (1306) ssbarnea
* Drop E suffix when printing rule id (1305) ssbarnea
* Add optional rule to check for loop var prefix (1303) ssbarnea
* Add ability to mock roles (1304) ssbarnea
* Recurse inside given folders (1302) ssbarnea

Bugfixes

* Avoid role-name errors with galaxy roles (1321) ssbarnea
* Avoid false positives with literal-compare (1315) ssbarnea
* Fix exclude_paths regression (1313) ssbarnea
* Avoid exceptions post syntax errors (1310) ssbarnea
* E206: Avoid false positives with multilines (1300) ssbarnea

4.3.7

Changes

Bugfixes

* Avoid crash with None tasks (1048) ssbarnea
* Avoid reporting main role task files as unknown (1087) ssbarnea
* Avoid 208 rule with unarchive module (1089) ssbarnea

4.3.6

Changes

* Prevent rule 208 matche in nomaches example (1068) samueloph
* Enable progressive mode (1065) ssbarnea

Minor Changes

* Show severity in Github Workflow command message (1055) JiriSko

Bugfixes

* Ensure loading of collections and plugins (1074) felixfontein

4.3.5

Changes

* Fix improper syntax highlighting in README (1038) andrewimeson

Minor Changes

* Document how to add a new rule (1032) ssbarnea
* Ignore experimental violations for final result (1037) ssbarnea
* Enable retries on IOErrors (1039) ssbarnea
* Document packaging of custom rules (1036) ssato
* Improve violation avoidance hints (1034) ssbarnea

Bugfixes

* E208: Corrected file mode checking (1030) ssbarnea
* E106: Don't use relative paths for meta/main.yml (1044) nre-ableton

4.3.4

Changes

Bugfixes

* E208: Replace module should not trigger rule violation (1024) aston-r
* Handle empty meta/main.yml in RoleNames rule (1022) phihos
* Allow use of file key inside include_tasks (1020) phihos
* Avoid KeyError: 'skipped_rules' exception (1014) phihos

4.3.3

Changes

Minor Changes

* Made console rule listing rich (978) ssbarnea

Bugfixes

* E208: Avoid raise when action=file and state=file (1006) moreati

Page 15 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.