Skip to content

Restriction on the use of deprecated "Message" method (DeprecatedMessage)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell BSL Minor Yes 2 standard
deprecated

Description

To display messages to the user in all cases, you should use the MessageUser object, even when the message is not “bound” to some form control. The Message method should not be used.

When used the Standard Subsystems Library it is recommended use procedure MessageUser from common module CommonPurposeClientServer, which use object UserMessage.

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:DeprecatedMessage-off
// BSLLS:DeprecatedMessage-on

Parameter for config

"DeprecatedMessage": false