Tuning validators

Whether or not a validator validates a particular resource depends on the filters that are in place for that validator.

When a validator is first developed, the implementer of the validator defines a default set of filters. These filters may be based on:

Through the Validation Filters dialog, you are able to further tune these settings.Normally you would simply keep the defaults, however two reasons why you may want to tune validation are:

You can access this dialog by clicking

Window | Preferences | Validation and then clicking

Settings beside each validator.

Filters are stored in groups. There are two types of groups: Include groups and Exclude groups. You can have as many Include groups as you like. Filters inside of an Include group cause resources to be validated. If any rule matches then the entire group matches. Inside of a group the filter rules are OR’d together. However individual Include groups are AND’ed together. You can have one Exclude group. If any of its filter rules match, then the resource is excluded. Exclusion takes precedence over inclusion.

These rules are illustrated with this hypothetical example:


To add a rule to a group, select the group on the left, and click

Add Rule.

 

Related tasks

Disabling validation

Overriding global validation preferences

Manually validating code

Selecting code validators