diff options
author | Shaun McCance <shaunm@redhat.com> | 2020-12-22 19:25:04 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@redhat.com> | 2020-12-22 19:25:04 -0500 |
commit | 3eb7368983d5c538df4fa7cb181b7f262a1b115e (patch) | |
tree | f5cdedcdef43cd7635a5f0e0228450f76888ad70 /templates | |
parent | 4f5004e41ff9933b70a0b7333ce17642c6427a80 (diff) | |
download | yelp-tools-3eb7368983d5c538df4fa7cb181b7f262a1b115e.tar.gz |
yelp-check.py: Allow custom checkers defined in the config file
This commit allows you to specify your own checkers in .yelp-tools.cfg.
This concept of how these work is very similar to Schematron, but very
simplified in a basic config file syntax. For example, here's how to
write a check to make sure you always have a non-empty desc element:
[namespaces]
mal = http://projectmallard.org/1.0/
[check:gnome-desc]
select = /mal:page/mal:info
assert = normalize-space(mal:desc) != ''
message = Must have non-empty desc
Diffstat (limited to 'templates')
0 files changed, 0 insertions, 0 deletions