Procedure should not return Value (ProcedureReturnsValue)¶
Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Error |
BSL OS |
Blocker |
Yes |
5 |
error |
Description¶
Procedure
, unlike a Function
cannot return values. This diagnostic finds procedures where there is a Return
statement with a value.
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:ProcedureReturnsValue-off
// BSLLS:ProcedureReturnsValue-on
Parameter for config¶
"ProcedureReturnsValue": false