Suppressing Specific Messages
Each warning or error message has an associated messageID. You can filter out the display specific warnings or errors by specifying suppress to prevent that type of messageID from being displayed. You might want to filter out certain messages because they point out items that do not apply to the script that you are checking, for example: if you are porting a script to only one platform, you do not care whether your script has portability issues.
In the following example, the messageID is "nonPortCmd":
foo:tcl:53 (nonPortCmd) use of non-portable command
registry values $key
^
You can suppress this type of message by specifying suppress nonPortCmd on the command line, for example:
procheck -suppress nonPortcmd foo.tcl
Note: You can suppress multiple messageID types at the same time by specifying suppress with the multiple instances of messageIDs in quotation marks, for example:
procheck -suppress "nonLiteralExpr badOption" foo.tcl
You can also specify suppress with the messageID for each instance of the message ID that you want to filter, for example:
procheck -suppress nonLiteralExpr -suppress badOption foo.tcl
For a complete list of all the message IDs, see "TclPro Checker Messages."
http://www.ajubasolutions.com Voice: (650) 210-0100 Fax: (650) 210-0101 support@ajubasolutions.com |