Ansible Lint is a command-line tool (part of the ansible-lint https://github.com/ansible/ansible-lint) for linting of Ansible Playbooks, Roles, and Collections. That is - leverage community recommendations and opinions in writing Ansible content by means of a tool to help ensure what you’re writing is generally valid. Additionally, Ansible Lint is designed to assist users in updating their code to function with more recent Ansible versions.
Ansible Lint should be considered a trusted advisor to Ansible content creators, helping them write and package higher quality Ansible content.
Some guidelines to create a new Ansible Lint rule include the following: Use a short but clear class name, which must match the filename.