Currently, a violation of this rule looks like this:
And this is the message I am getting:
Although the message perfectly explains what is wrong, I just find it a bit convoluted given that most of the information is already available in the editor.
Describe suggestions on how to achieve the rule
I would simplify it to:
"A literal string is passed to *parameter name* of *object/method name*, which expects a localized string. Retrieve it from a resource table instead."
Analyzer
Diagnostic ID: CA1303
Describe the improvement
Currently, a violation of this rule looks like this:
And this is the message I am getting:
Although the message perfectly explains what is wrong, I just find it a bit convoluted given that most of the information is already available in the editor.
Describe suggestions on how to achieve the rule
I would simplify it to:
"A literal string is passed to *parameter name* of *object/method name*, which expects a localized string. Retrieve it from a resource table instead."