ACHECK-RULES.5(5) | User Contributed Perl Documentation | ACHECK-RULES.5(5) |
set.rules - Rules set for acheck
Rules set files contain rules to be check by acheck.
Lines beginning with a number sign (`#') and empty lines will be ignored. Spaces at the beginning and the end of a line will also be ignored as well as tabulators. If you need spaces at the end or the beginning of a value you can use apostrophes (`"'). A comment starts with the number sign, there can be any number of spaces and/or tab stops in front of the #. Long lines can be broken into multiple lines ending with a backslash (`\'). Some possible examples:
# this line is ignored field value field value # this is a comment field "value ending with space " field value\ continuing on the next line
You have to escape number signs with a backslash to use it in a value and use apostrophes if a value ends with a backslash.
Rule sets are made of lists of rules. Theses lists can be repeated a number of times, until or while a condition happens.
A rule detects an error if the corresponding test succeeds and none of its validation tests does. Each rule can then produce some fixes, a warning or an error, and provide hints to help the operator to correct the error.
Parts of the text can be set as comments and so no rule and no spell check will be performed on them.
A list starts at a `list' statement, and stops at the first `end_list' or at the end of the file.
Mandatory fields:
Optional fields:
Sub-rules:
A rule starts at a `rule' statement, and stops at the first `end_rule' or at the beginning of a comment or a list.
Mandatory fields:
Optional fields:
A validation test starts at a `valid' statement, and stops at the first `end_valid' or at the beginning of a rule, a comment, a list or another validation test.
Mandatory field:
Optional field:
A comment starts at a `comment' statement, and stops at the first `end_comment' or at the beginning of a rule, a comment or a list.
Comments are just skipped, no other rule and no spelling are performed on them.
Mandatory field:
Optional fields:
Nicolas Bertolissio <nico.bertol@free.fr>
2016-01-19 | perl v5.22.1 |