Source Analyze CodesSource analyze codes are used to perform user-defined checks on scripts such as UI scripts, DLLs and DALs. Each source analyze code is linked to an expression text and to a warning message. The expression text contains a search pattern, which is used to find errors. If an error is found, VSC generates a warning. The warning contains, among other things, the name of the script and the line number where the error is found, and the text of the warning message that is linked to the source analyze code. Some source analyze codes are linked to a DLL. This DLL is used to perform more complex search actions. Each source analyze code:
You can maintain source analyze codes in the Source Analyze Codes (tlvsc3511m000) session. For more information, refer to the session help. To make sure that the checks defined in a source analyze code's expression are executed, you must link the source analyze code to one or more verification filters. For more information, refer to To configure VSC. Expressions The search pattern in an expression text consists of start expressions, end expressions and search expressions. Points of attention:
Search mechanism To execute the checks that are defined for a source analyze code, VSC does the following:
Beispiel- Source Analyze Code without
DLL VSC executes the following source analyze code.
The expression searches for lines that contain the "app_start" function. For each search result, VSC generates a warning. The warning contains, among other things, the name of the script and the line number where the error is found, and the text of the warning message ("Function 'app_start' is not supported by Web UI "). Beispiel- Source Analyze Code with
DLL VSC executes the following source analyze code.
The expression searches for lines that contain the "message" function. Subsequently, the "otlvscdll4009" DLL checks the message arguments. VSC generates a warning if a message call contains plain text, instead of a message code. The warning contains, among other things, the name of the script and the line number where the error is found, and the text of the warning message ("Text in function message()").
| |||||||||||||||||