Ansible Lint Versions Save

ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you

v6.20.1

7 months ago

Bugfixes

  • Fix detection of play roles vars missing prefix (#3765) @cavcrosby
  • Prune reported errors after autofix (#3774) @cidrblock
  • --fix will now default to all (#3777) @ajinkyau
  • Avoid false error caused by TypeError with jinja rule (#3773) @ssbarnea
  • Sanity Rule Ignore Additions and Updates (#3766) @alisonlhart
  • Update rulebook schema (name is now required) (#3776) @ssbarnea
  • Expose rules that have autofix capability in docs (#3770) @shatakshiiii
  • List all the fixable rules in CLI via --list-rules (#3737) @shatakshiiii
  • Include level in SARIF results (#3758) @ssbarnea
  • Meta runtime supported version update (#3755) @alisonlhart

v6.20.0

7 months ago

Minor Changes

  • Respect cgroup CPU limits when running inside containers (#3749) @ssbarnea
  • Rename --write option to --fix (#3748) @ssbarnea
  • Add auto-fixing implementation for no-free-form rule (#3725) @ajinkyau
  • Add auto-fixing implementation for partial-become rule (#3692) @shatakshiiii
  • Add auto-fixing implementation for no-jinja-when rule (#3721) @shatakshiiii

Bugfixes

  • Fix the detection of role vars missing role prefix (#3750) @cavcrosby
  • Clarify auto-fix arguments use (#3751) @ssbarnea
  • Avoid IndexError exception with jinja transform (#3747) @ssbarnea
  • Fix docs typo (#3746) @ssbarnea
  • Add /bin/bash executable to example correct code for pipefail rule (#3731) @Perdu
  • Properly avoid pipx venv path to be included in altered path warning (#3730) @chrysle
  • Fix transform exception with local_action with old syntax (#3743) @ssbarnea
  • Support only_upgrade (#3734) @soroshsabz

v6.19.0

7 months ago

Minor Changes

  • Add auto transform for no-log-password rule (#3708) @ajinkyau
  • Add auto-fixing implementation for key-order[task] rule (#3705) @ajinkyau
  • Add auto-fixing implementation for jinja[spacing] rule (#3691) @ajinkyau
  • Make schema validation messages more explicit (#3701) @ssbarnea
  • Transform for deprecated-local-action rule (#3689) @ajinkyau

Bugfixes

  • Require ansible-compat>=4.1.10 (#3723) @ssbarnea
  • Skip altered path warning for ansible-lint installed by pipx (#3720) @chrysle
  • Update transform for key-order rule (#3719) @ajinkyau
  • Allow installation of pre-release collection version as dependencies (#3716) @ssbarnea
  • Avoid deprecated-bare-vars false positive with file paths (#3709) @ssbarnea
  • Limit sequence-of-sequence indents to a single space (#3671) @Qalthos
  • Avoid no-handlers false positives (#3702) @ssbarnea
  • Add missing word to risky-shell-pipe docs (#3704) @roock
  • Avoid yamllint truthy violations with github workflows (#3698) @ssbarnea
  • Avoid false positive with var-name rule on roles (#3697) @ssbarnea
  • Include links to documentation for schema validation errors (#3684) @ssbarnea
  • Schema update (#3693) @cidrblock
  • Use yaml.load_all for multiple yaml document (#3679) @shatakshiiii
  • Ignore user configured value for any_unparsed_is_failed (#3680) @ssbarnea
  • Update rulebook schema (#3681) @ssbarnea

v6.18.0

8 months ago

Minor Changes

  • Limit the maximum block depth (#3602) @Ruchip16
  • Transform functionality for command_instead_of_shell (#3675) @ajinkyau
  • Add rule to check the number of tasks (#3156) @Ruchip16

Bugfixes

  • Clarify loop-var-prefix rule and code snippet (#3642) @schwarmco
  • Update version_added for complexity rule (#3623) @ajinkyau
  • Ensure that single space between tasks is preserved when using --write (#3641) @shatakshiiii
  • Update ansible-compat used for testing (#3664) @ssbarnea
  • Document yaml[line-length] rule (#3653) @shatakshiiii
  • Prevent use of spdx-tools 0.8.0 due to breaking changes (#3649) @ssbarnea
  • fixes dead marketplace link (#3631) @wookietreiber
  • Improve profile information on summary line (#3637) @ziegenberg
  • command-instead-of-module: allow git rev-parse (#3610) @JohnVillalovos
  • Include filepaths starting from $HOME in lintables (#3621) @shatakshiiii
  • Update _mockings.py to fix bug created in #3390 (#3614) @karcaw
  • Allow to set gather_facts as templated boolean (#3606) @noonedeadpunk
  • Add dependency version check for collection metadata (#3601) @ajinkyau
  • Fix installation of dependencies when run as an action (#3592) @ssbarnea

v6.17.2

10 months ago

Bugfixes

  • Allow use as a reusable github action (#3513) @ssbarnea
  • Add action and args properties to task class (#3576) @ssbarnea
  • Fixed error when sarif file option is provided (#3587) @ajinkyau
  • Add NetBSD as a recognized platform (#3586) @he32
  • Display ansible-compat version alongwith with other deps (#3584) @ajinkyau
  • Refactored syntax-checking (#3568) @ssbarnea
  • Avoid app reinitialization during syntax-check (#3563) @ssbarnea
  • Allow config file to have .yaml extension (#3559) @bdsoha
  • Allow lists of lists of strings for vars_files (#3561) @ajinkyau

v6.17.1

10 months ago

Bugfixes

  • Update guess install method check (#3553) @ajinkyau
  • Fix exclude logic bug that can cause cause partial linting (#3552) @ssbarnea
  • Make profile information on summary line more clear (#3545) @ssbarnea
  • Avoid adding pip related messages if installation method is different (#3551) @ajinkyau
  • Avoid false positive with var-naming[no-role-prefix] (#3550) @ssbarnea
  • Make refresh_schemas handle firewalls that cut the file transfer midway (#3546) @sverrehu
  • Rename marketplace action (#3548) @ssbarnea
  • Fix action name (#3536) @coaxial
  • Handling of exclude paths with trailing slashs (#3527) @hille721
  • Ensure that rules collections use Runtime in offline mode (#3526) @ssbarnea
  • Avoid using get_app() from inside the rule (#3525) @ssbarnea
  • Avoid dependency error from rich (#3517) @ssbarnea

v6.17.0

11 months ago

Minor Changes

  • fqcn[deep]: detect deep plugins (#3502) @ssbarnea

Bugfixes

  • Reimplement file exclusion logic (#3507) @ssbarnea
  • Check validity of 'become_method' values from code (#3499) @ajinkyau
  • Fix role_name_ prefix include_role var name error (#3500) @ajinkyau
  • Hide pip error if not present (#3494) @Et7f3
  • Update formatter to avoid reporting paths with .. (#3496) @ssbarnea
  • Remove false positive on 'cacheable' property of set_fact (#3490) @ajinkyau
  • Add missing become_method plugins to the schema (#3484) @ajinkyau
  • Add support for ansible-builder v3 schema (#3480) @ajinkyau
  • Add Github Marketplace Action (#3476) @ssbarnea
  • Add oracle linux 8.8 (#3479) @facorazza
  • Revert ansible-compat vendoring (#3478) @ssbarnea
  • Updated file or dir not found message (#3474) @ajinkyau
  • Check for included role prefix instead of current one (#3473) @ssbarnea

v6.16.2

11 months ago

Bugfixes

  • Update test dependencies (#3470) @ssbarnea
  • Fix and document installing of requirements.yml files (#3471) @ssbarnea
  • Do not ever exclude files given as arguments (#3468) @ssbarnea
  • Ensure we return error if argument gives are not present (#3467) @ssbarnea
  • Allow rules to expose all tags they can produce (#3464) @ssbarnea
  • Enable var-name rule to detect read-only variables (#3462) @ssbarnea
  • Add Oracle Enterprise Linux 7.* (#3463) @Rylon
  • Fix for var-naming rule to not break on include_tasks and vars (#3458) @ajinkyau
  • var-naming now prevents use of Ansible reserved names (#3460) @ssbarnea
  • Ensure that we also lint files from git submodules (#3431) @ssbarnea
  • Adding 2.16 to the list of allowed ansible-core versions in meta-runtime rule (#3455) @alisonlhart

v6.16.1

11 months ago

Bugfixes

  • Update lock file to use ansible-core 2.15.0 (#3449) @ssbarnea
  • Install requirements from galaxy.yml and tests/requirements.yml (#3446) @ssbarnea
  • Add Kali Linux as a supported platform (#3448) @mcdonnnj
  • Do not trigger no_handler upon complex conditions (#3437) @klaus-tux
  • Hide warning about unique filter originating from core (#3436) @ssbarnea
  • Relax ruamel-yaml requirements (#3433) @ssbarnea
  • Suggest correct alternative for with_filetree (#3432) @ErwinJanssen
  • Upgrade var-naming rule to include role name prefix (#3422) @ssbarnea
  • Fix exception when using reformatting on scalars (#3423) @ssbarnea
  • Find and lint imported playbooks (#3413) @ajinkyau

v6.16.0

11 months ago

Minor Changes

  • Capture python warnings and report some of them as matches (#3324) @ssbarnea
  • Capture and hide ansible core warnings by default (#3361) @ssbarnea
  • Remove progressive mode (#3350) @ssbarnea
  • Enforce use of lineno variable name inside the library (#3326) @ssbarnea

Bugfixes

  • Add Amazon Linux 2023 as a supported platform (#3405) @artis3n
  • Capture python warnings and report some of them as matches (#3324) @ssbarnea
  • Fix missing required arguments issue from args rule (#3402) @ajinkyau
  • Change matchtask to receive a Task instance (#3403) @ssbarnea
  • Require ruamel.yaml>=0.17.24 (#3406) @ssbarnea
  • Avoid exception when trying to load invalid text files (#3399) @ssbarnea
  • Fix ansible collection path detection (#3398) @ssbarnea
  • ruff: Address FBT002 (#3389) @shatakshiiii
  • More pathlib adoption (#3390) @ssbarnea
  • Avoid dropping comments on YAML transformation (#3392) @ssbarnea
  • Correct docs on navigator schema location (#3394) @yajo
  • Fix changelog schema for connection plugins (#3388) @Qalthos
  • Migrate from os.path to pathlib (#3384) @ssbarnea
  • Remove resolvelib from requirements lock (#3387) @ssbarnea
  • Make cwd use pathlib (#3383) @ssbarnea
  • ruff: Address PGH (#3380) @ssbarnea
  • ruff: Address A (#3379) @ssbarnea
  • ruff: Address B (#3377) @ssbarnea
  • ruff: Address SLF (#3372) @ssbarnea
  • ruff: Address SIM (#3373) @shatakshiiii
  • ruff: Address EXE (#3367) @ssbarnea
  • ruff: Address BLE (#3368) @shatakshiiii
  • ruff: Address INP and PLW (#3366) @ssbarnea
  • Add initial handling of submodules to contribution docs (#3362) @klaus-tux
  • ruff: Address T and RET (#3364) @ssbarnea
  • Find "changed" not only in first "when" condition (#3358) @klaus-tux
  • ruff: fix S rule (#3363) @ssbarnea
  • Make MatchError a dataclass (#3345) @ssbarnea
  • Remove EM from ruff ignores (#3356) @shatakshiiii
  • Mock jinja filters to prevent templating errors (#3355) @ssbarnea
  • Update schema files (#3354) @ssbarnea
  • Add Fedora 38 to meta.json schema file (#3353) @Marek-Mantaj-Mobica
  • Remove RUF from ruff ignores (#3346) @ajinkyau
  • Remove G from ruff ignores (#3332) @shatakshiiii
  • Remove ISC from ruff ignores (#3342) @shatakshiiii
  • Remove C from ruff ignores (#3343) @ajinkyau
  • Make linter configuration a dataclass (#3334) @ssbarnea
  • Remove N from ruff ignores (#3328) @shatakshiiii
  • Remove useless . from additional_dependencies in pre-commit hook (#3327) @trallnag