To handle warnings

As 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.

This section explains:

  • How to handle the filtered warnings on the LN server
  • How to accept or solve filtered warnings
  • The accepted warnings list
Important

The following 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, refer to the LN Studio documentation.

To handle warnings on the LN server

To handle warnings you must take the following steps:

Etape 1. View the list of warnings and the warning details

To 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.

Etape 2. Display the "Filtered to Handle" warnings

Make sure that the warnings that must be handled immediately are displayed.

Depending on the verification filter settings, VSC generates the following 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 Vues, Références et Actions 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 are allowed to accept or solve these warnings before they get the Filtered to Handle status.

Etape 3. Accept or solve the warnings

For each "Filtered to Handle" warning, you must decide whether you want to accept it or solve it.

For example, VSC has generated the following 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 take the following steps:

  1. Double-click the warning, or select the warning and click the Accept Warning command on the Vues, Références et Actions menu. The Warnings (tlvsc3100s000) details session starts.
  2. Select the Accepted check box and enter the reason for acceptance in the Description field.
  3. 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 take the following steps:

  1. Double-click the warning. The Warnings (tlvsc3100s000) details session starts.
  2. View the detailed information and examples. The session usually displays a lot of information that will 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.
  3. Close the details session and return to the Warnings (tlvsc3500m000) overview session.
  4. On the Vues, Références et Actions 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 the following warning "Possible missing break in case statement". The Show component command starts the script editor, where you can add the missing statement.
  5. Run VSC again. If no further errors are found, the warning automatically disappears from the warnings list.
Accepted 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 Vues, Références et Actions menu in the Warnings (tlvsc3500m000) overview session, or from the Verify Software Components / End Users menu in the menu browser.

Rubriques liées