Skip to content

Linkage Checker Exclusion File

Tomo Suzuki edited this page Mar 9, 2020 · 10 revisions

A Linkage Checker exclusion file is an XML file to specify exclusion rules for linkage errors.

A linkage error is an invalid reference from a class to a symbol in another class. A symbol may be a class, a method, or a field. We call the referencing class “source”, and the referenced symbol as “target”. The relationship is illustrated below. The allow indicates an invalid reference from a source class to a target symbol.

References from source class to target symbol

Format

The exclusion file is an XML file (See a complete example file is in Example). Its top-level element is LinkageCheckerFilter.

Elements

  • A LinkageCheckerFilter element has zero or more LinkageError elements.
  • A LinkageError element has at least one of Target element and Source element.
  • A Target element has one Artifact, Package, Class, Method, and Field elements.
  • A Source element has one Artifact, Package, and Class elements.

Attributes

  • An Artifact element has “coordinates” attribute.
  • Package, Class, Method, and Field elements have “name” attribute.
  • Method and Field elements have “className” attribute.
Clone this wiki locally