Passing too many or too few arguments to the Confirm
/Error
/Message
/StrSubstNo
method should raise a warning
#252
rvanbekkum
started this conversation in
New Rule
Replies: 1 comment
-
I think AA0131 should handle this. microsoft knows/knew about the fact that this does not work properly with the confirm. due to an incomprehensible way of working, the issue was closed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you have a call to the
Confirm
/Error
/Message
/StrSubstNo
method and use aLabel
with placeholders you have the option to pass additional arguments for the placeholders' values that will be substituted into the placeholder locations.There is currently no code analyzer (afaik) that raises a warning if there are too many or too few/little arguments passed in a call to the
Confirm
method.Sample:
No code analyzer rules are triggered (except for LC0021).
Beta Was this translation helpful? Give feedback.
All reactions