-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule name[casing] conflicts with COP 3.1.16 #2690
Comments
@cidrblock WDYT about this, should we update the rule to document and support that? I looks a little bit weird to name a task |
I found it extremely useful to put the the task file name in the task for large roles with a lot of includes. Even before I knew that rule 8.3 "Break complex task files down into discrete parts" existed I was doing something similar by putting the file name at the end of the task name.
In fact you have already discussed how to go about limiting the number of tasks in a file (#2172). And the more modularity you build in, the more important this naming requirement becomes. |
I think we should allow for this, if the filename is correct. We can suggest it as an alternative and ref the COP repo. If, over time, a different, more preferred pattern emerges, we can adapt to it. |
Summary
The current rule name[casing]: All names should start with an uppercase letter directly conflicts with
COP reference 3.1.16 Prefix names in sub-tasks files of roles with the subtask's filename (Example: subtask filename | subtask description)
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Not relevant, but Oracle Linux 8
STEPS TO REPRODUCE
Line in the ansible subtask file:
Output from ansible-lint:
Desired Behavior
The rule should NOT apply to the subtask portion of the task name, just the part that falls after the "|"
Actual Behavior
The correctly implemented COP 3.1.16 name is triggering the ansible-lint name[casing] rule
The text was updated successfully, but these errors were encountered: