matchplay false postivies cannot be disabled with # noqa #1923
Replies: 3 comments 1 reply
-
That is a custom rule, so really a product bug. |
Beta Was this translation helpful? Give feedback.
-
In any case, I think you'll have better luck writing your rule with |
Beta Was this translation helpful? Give feedback.
-
Why does a rule needs special treatment to work with noqa? |
Beta Was this translation helpful? Give feedback.
-
Summary
False positives reported by matchplay cannot be disabled with # noqa rule-name.
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
STEPS TO REPRODUCE
rules/TaskInPlaybookRule.py
data/task-in-playbook.yml
Desired Behavior
The first task in the playbook should fail linting whereas the second task should pass linting as it is masked with
# noqa
.Actual Behavior
Both tasks in the playbook fail linting.
Beta Was this translation helpful? Give feedback.
All reactions