Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Select an object in the list of violations to view its source code. In order to focus investigation, source code displayed presents either:

...

  • the object in violation
  • or the violation details when available (e.g. bookmarks, paths).
  • Whenever a piece of code is made available, the View File button (seen in the example below) provides the ability to open the entire source code file to get the entire context. The file is opened in a separate browser window. The entire source code is presented plus some context (application name, snapshot reference, file name).

    The Quality Rule name is also highlighted using colour (yellow for a standard quality rule (as shown below), and red for critical):

    ...

    If a "copy/pasted" Quality Rule has been selected (for example Avoid Too Many Copy/Pasted Artifacts), a list of objects that have a high level of similarity with the selected objects will be listed:

    ...

    When you export to Excel from the Violation level, a column entitled containing a Quality Rule's Associated Value may  may also be available in the resulting Excel file - in the example below, "JSP Page name" is the Associate Value for the Quality Rule "Action Artifacts should not directly call a JSP page":

    Image Modified

    The Associated Value refers to a specific output for  for the Quality Rule in question. For the Quality Rule shown above "Close the outermost stream ASAPAction Artifacts should not directly call a JSP page", the Associated Value is defined simply as the the number of methods found to be violating the rule in the object in questionas the JSP Page name - in other words, for this Quality Rule, the JSP file listed in the column highlighted above violates the Quality Rule question. You can view the Associated Value configuration in the CAST Management Studio by opening the Assessment Model and locating the Quality Rule:

    Image Modified