When a validator is first developed, the implementer of the validator
defines a default set of filters. These filters may be based on:
- file extensions
- folder of file names
- project natures
- project facets
- content types
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:
- Performance: if you have a very large workspace, you could reduce the
amount of validation.
- Non standard conventions: if you use a non standard naming convention
(for example stores XML in files with an .acme-xml extension), you could still
enable the appropriate validators to run against those files.
You can access this dialog by clicking 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.