Page tree

Versions Compared

Key

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

...

A new Quality Rule Model is created with the two default sets, Scope and Violations:

Image Modified

Step 1 - Define Java Set and content

...

Expand

Right click blank space in the Layers and Sets window and choose New Set:

Image Modified

Give the new set a name:

Drag the set into the Main window:

Click to enlarge

Image Modified

Define the content for the set: in this example we will re-use the Java Set in the default Scope set, therefore we just need to define a block that matches all Java Methods. The easiest way to do this is to drag the object type from the Types and Properties window:

Click to enlarge

Image Modified

Finally, we need to ensure that the Scope set re-uses the Java Method set. The easiest way to do this is to drag the Java Method set from the Layers and Sets window and drop it in the "All objects matching" block that will already be present in the Scope set:

Image Modified

...and then choose the "member-of" block when prompted:

Image Modified

...to give you this configuration:

Click to enlarge

Image Modified

Step 2 - Define the Data Set

...