Architecture Checker - Information - How to get objects having more than ten lines of code

Purpose

This page gives information on how to get objects having more than 10 lines of code.

Applicable in CAST Version
Release
Yes/No
8.3.x(tick)
8.2.x(tick)
8.1.x(tick)
8.0.x(tick)
7.2.x(tick)
7.0.x(tick)
Applicable RDBMS
RDBMS
Yes/No
Oracle Server(tick)
Microsoft SQL Server(tick)
CSS2(tick)
CSS1(tick)
Details
  1. Generate snapshot.
  2. Launch Architecture Checker.
  3. Load “Objects having at least 10 lines.CASTArchitect” file - Objects having at least 10 lines.CASTArchitect
  4. Check the Set Content on your application.

  5. You can see the number of objects having at least 10 lines of code. You can also see the list of these objects & access the source code.

Notes/comments

If the file cannot be loaded, it is easy to recreate it using the below steps:

  1. Launch Architecture Checker.
  2. Create a new Architecture Model.
  3. Add new set "Objects Having at least 10 lines".
  4. Right click on the set and add selection criteria without including subobjects.
  5. Right click on the selection criteria and add property with the following values :
    1. Property selection - category
    2. Category or type - base metric values
    3. property - number of code lines
    4. operator - >=
    5. add values list - 10


Step 5 can also be modified by adding more properties with "and/or" to specialize the set definition to filter on more criteria , for instance only Oracle Objects