Skip to content

Inspections

These are the inspections that can be carried out on the rules and lists files using the Rule Inspection tab of the Console tool window.

List Equality
Finds identical lists. Duplicate lists may have been made by different programmers, one without the knowledge of the other. If the values ​​are really the same, one list is enough.

List Similarity
Finds similar lists. Very similar lists may have been made by different programmers, one without the knowledge of the other. It is good practice to check if it is possible to use a single list that is the merger of the two.

Empty List
Finds empty lists. It is good practice that a list contains at least one item.

Orphan List File
Finds unused lists. It is a good practice to delete all unnecessary files in a project.

Full Rule Equality
Finds duplicate rules. Duplicate rules can lead to seemingly unexplained results, such as high-scoring domains or multiple field extractions. Duplicate rules should be deleted.

Partial Rule Equality (different domain)
Finds similar rules where the only difference is the domain to which points are attributed. Rules of this type are legitimate but must be verified.

Partial Rule Equality (different template)
Finds similar extraction rules where the only difference is the fields that are extracted. Rules of this type are legitimate but must be verified.

Rule Similarity (eligible for merge)
Finds similar rules, based on the number of attributes and items shared, regardless of operand combinations and depth level. Please double-check and merge similar rules whenever possible (e.g. using OPTIONAL operator) for easier project maintenance.

Rule Similarity (everything in common but operators)
Finds rules are the same similar with respect to their attributes and arguments yet differ for how these are combined by the operators. A check is suggested.

Orphan Rule File
Finds rule files (.cr extension) which are not directly or indirectly imported intomain.cr. It is a good practice to delete all unnecessary files in a project.