ansible-lint icon indicating copy to clipboard operation
ansible-lint copied to clipboard

name[imperative]: All task names should be written in the imperative

Open cidrblock opened this issue 3 years ago • 1 comments

Starting to pull in possible rule ideas from the community of practice: https://github.com/redhat-cop/automation-good-practices/pull/64

A task in a task file or play performs an action, the name of the task should be written in the imperative.

We might need to pull this one and use some internals rather than maintain an internal list:

https://github.com/PyCQA/pydocstyle/blob/master/src/pydocstyle/data/imperatives.txt

cidrblock avatar May 23 '22 12:05 cidrblock

Are we ok to add pydocstyle as a dependency for the linter? Do we have any other python library that can help us achieve the same goal?

ssbarnea avatar Jun 10 '22 09:06 ssbarnea