-
Notifications
You must be signed in to change notification settings - Fork 665
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
name[casing]
incorrectly catches notify
triggering listen
#4168
Comments
This bug was introduced by #4149 but we need to consider all the implications before making another change here. Temporary using PS. We are still debating internally regarding what to do about this one. |
This comment was marked as resolved.
This comment was marked as resolved.
@guidograzioli We had an internal meeting about this, no clear decision yet but reverting the change is on the table. Any suggestions would be welcomed here as that is not an easy to fix bug, any option that we considered still means a problem for some users.
|
my $.02:
thanks for asking! |
There is also chatter on the forum relating to this. In my opinion, listeners should not need to follow any strict casing standard. I also think handler names should optionally be excluded, so if the linter can distinguish handlers from regular tasks, it would be nice to have optional skip/warn rules for handlers. (something like Similarly to listeners, edit: Or place this new test for notifiers/listeners under |
Pretty questionable feature. I've always seen In other words, handler topics shouldn't be treated the same way as task names, and assuming codebase is linted, handler names are already checked for |
I tend to agree with the above. I think we should pull the check as the topic should be considered more of an id where the task name is there for readability and documentation. Ideally, we would be able to suggest that topic are used rather than task names but there's some complexity there that can be addressed easily. There's a draft up to revert it: #4205 (review) |
and.... It doesn't always get said, but TY everyone for all the feedback and conversation around this one. |
We just merged #4205 which removes the modification of notify and listen. It will be released in few minutes. |
Summary
The following raises
case[naming]
with "Task notify 'restart amq_broker' should start with an uppercase letter."It should not, as the handler is defined as:
Do not see how or why a style guideline should apply to an internal string
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
See: https://github.com/ansible-middleware/amq/actions/runs/9107358687/job/25036108750#step:7:1
Desired Behavior
No listen name is reported, name[casing] is not skipped in .ansible-lint
Actual Behavior
Listen name is reported
The text was updated successfully, but these errors were encountered: