| | To handle warningsAs a result of the
VSC run a list of
warnings is generated. Each warning has various attributes, such as: - Verification code.
- Component Type.
- Component, subcomponent and line number where the error
occurs.
- Priority: high, normal, suspicious, or low.
- Category: General, Tools Consistency, Application Design,
Application Logic, Standards, Text, Performance, Integration, Runtime, or
Export.
- Message ID and message text.
Whether a warning can be accepted or must be solved, depends on
the settings in the Verification Filter Defaults (tlvsc2110m000)
session. The procedure describes how you can handle warnings on the
LN server. If you
verify software components via the
Infor LN Studio, the warnings are handled in the
LN Studio.
For details, see the LN Studio documentation. To handle warnings on the
LN server: 步骤 1. View the list of warnings and the warning
detailsTo view the generated warnings, you must run the
Warnings (tlvsc3500m000) session. You can start this
session through the
Maintain command in the
Verify Software Components (tlvsc3400m000) session, or from the Verify Software Components / End Users menu in the menu browser. To view
detailed information for each warning, you must go to the
Details tab. 步骤 2. Display the "Filtered to Handle" warningsEnsure that the warnings that must be handled immediately
are displayed. Depending on the verification filter settings, VSC
generates these types of warnings: - "Filtered to Handle" warnings. You must handle these
warnings immediately. You must either solve or accept these filtered
warnings.
- "Non-filtered" warnings that you do not have to handle
immediately.
To display the "Filtered to Handle" warnings, you must make
sure that the
Filtered to Handle check box is selected. You cannot
select the check box by clicking it. To select (or clear) the check box you
must click the
Switch Filtered to Handle command on the
相应
menu. Note: If the
Filtered to Handle check box is not selected, the
session displays the warnings that you do not have to handle at this moment.
However, you can accept or solve these warnings before they get the
Filtered to Handle status. 步骤 3. Accept or solve the warningsFor each "Filtered to Handle" warning, you must decide
whether you want to accept it or solve it. For example, VSC has generated this warning: "Possible
missing break in case statement". - If this break is not missing, but left out on purpose, you
can accept the warning.
- If this break was left out accidentally, you must solve the
warning.
Accept a warning To accept a warning: - Double-click the warning, or select the warning and click
the Accept Warning command on the
相应 menu. The
Warnings (tlvsc3100s000) details session
starts.
- Select the
Accepted check box and enter the reason for
acceptance in the
Description field.
- Click Save and Close.
Note As a result of the filter settings that are specified in
the Verification Filter Defaults (tlvsc2110m000) session: - VSC can block an accepted warning. You must solve the
warning, before you can accept it.
- A "Filtered to Handle" warning can block the check-in
procedure for the component. You must solve the warning, before you can
check-in the component.
Solve a warning To solve a warning: - Double-click the warning. The
Warnings (tlvsc3100s000) details session starts.
- View the detailed information and examples. The session
usually displays a lot of information that can help you to solve the warning,
such as:
- A description, a motivation and a possible solution for
the warning.
- A wrong example.
- A correct example.
- Close the details session and return to the
Warnings (tlvsc3500m000) overview session.
- On the 相应 menu, click
Show component. The appropriate editor for the
software component starts automatically. Edit the software component and fix
the problem.
- For example: VSC has generated this warning "Possible
missing break in case statement". The
Show component command starts the script editor,
where you can add the missing statement.
Run VSC again. If no further errors are found, the
warning automatically disappears from the warnings list. You can view the accepted warnings and the corresponding
reasons for acceptance in the
Accepted Warnings (tlvsc3501m000) session. You can start
this session from the 相应 menu in the
Warnings (tlvsc3500m000) overview session, or from the Verify Software Components / End Users menu in the menu browser.
| |