Is targetName mandatory in suppressions? #3259
-
|
Per docs, I define suppressions like this, with suppression:
isFruit:
targetName:
- FridgeI also get the same result without using suppression:
isFruit:
- FridgeIs this a legit (can use) or undocumented (should avoid) feature? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
@nightroman It's intended and supported, just a simplification because there is only one property that can be currently configured. Feel free to use suppression with or without So to answer the short question, If an extra property is ever added and you wanted to use that then you'd need to use the longer form. |
Beta Was this translation helpful? Give feedback.
@nightroman It's intended and supported, just a simplification because there is only one property that can be currently configured. Feel free to use suppression with or without
targetNamein production use cases.So to answer the short question,
targetNameis optional.If an extra property is ever added and you wanted to use that then you'd need to use the longer form.