-
I'd like to disallow different methods, with different messages, dependent upon the number of parameters used. For example, if I've got function:
I'd like to display:
Is this possible at all? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, unfortunately this is not currently possible. The message is defined only on a function/method/... level and is the same for any number of parameters used. I may add a param-level message that would override the main level message if the call is disallowed due to a parametr being used/missing. I think you may then be able to create a config that would do what you need. |
Beta Was this translation helpful? Give feedback.
-
I have created #155 so I don't forget 😅 Thanks for the idea. |
Beta Was this translation helpful? Give feedback.
Hi, unfortunately this is not currently possible. The message is defined only on a function/method/... level and is the same for any number of parameters used.
I may add a param-level message that would override the main level message if the call is disallowed due to a parametr being used/missing. I think you may then be able to create a config that would do what you need.