Description

This page provides the details about the wrong violations that are flagged for the Quality Rule "Avoid Programs with lines of more than 80 characters" on the dashboard.

Please see the below screenshot for clarity:

The violations are flagged even after configuring the option of free-format code in the CAST Management Studio, as shown below:

Observed in CAST AIP
Release
Yes/No
8.3.x(tick)
Observed on RDBMS
RDBMS
Yes/No
CSS(tick)
Step by Step Scenario

Below is the step-by-step scenario leading to the problem:

  1. Open CMS > Technologies Tab > Mainframe settings.
  2. Configure the settings to get Source in Free-form format and save.
  3. Run the analysis+snapshot for a Mainframe application.
  4. Open dashboard and check violations for "Avoid Programs with lines of more than 80 characters".
Impact of the Problem

The impact of the problem on the analysis or the dashboard is: The user will get some violations which is not expected for the quality rule.

Action Plan

This is not a false violation or a wrong violation, but it is an expected behavior.

Refer to the below explanation on the scenario and the functional expectation of the product:

The fact is that this rule is related to code maintainability and best practice in terms of number of characters per line of code. Moreover it is common to various technologies with the same characteristics (like Java).
Regarding COBOL, the fact is that it is in the free format that this rule makes sense because in the column-formatted format we should not have any violation.

Indeed in free format we should see violations because in column-based format, we should not have lines with more than 80 col.

Moreover, the rule has a parameter and the users can adjust it if necessary

In conclusion, this rule must stay as it is to be consistent with the other similar rules.

The unified rule allows to change the maximum number of characters per line.

  1. A solution could be to adjust this parameter.

For details on how to change or modify the values of a parameter in CMS Assessment Model, refer to this document.


Notes/comments
 Ticket # 6237
Related Pages