skDisableMessageBlock
skDisableMessageBlock(l_rulesg_exp1... ) =>g_result
Description
Disables one or a list of SKILL Lint messages from being reported by rules within the body of the function. You might want to turn off certain rules temporarily, and not globally, inside a particular block of code. SKILL Lint will recognize a call to this function if inserted inside the block of code being analyzed.
This function does not work for summary or statistic messages generated by SKILL Lint (for example, message:External). In these cases, use the sklint ?depends and ?ignores keyed arguments.
Arguments
|
One or more rules to ignore for all the code within the body of this function (that is, g_exp1 ...). |
|
Value Returned
|
The result of the last expression evaluated. It can be ignored. |
Examples
To disable the single SKILL Lint message for MEMBER1 from reporting (the parentheses around the message name can be omitted):
(procedure (aFunc a b)
(skDisableMessageBlock MEMBER1
(member a b)
(geOpen)
)
(member 1 a)
)
To disable the SKILL Lint messages for MEMBER1 and geOpen from reporting:
(procedure (aFunc a b)
(skDisableMessageBlock (MEMBER1 geOpen)
(member a b)
(geOpen)
)
(member 1 a)
)
Related Topics
Return to top