mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Stricter feed validation false-positive filtering
This commit is contained in:
parent
838d73ed22
commit
afcc4fd760
1 changed files with 4 additions and 5 deletions
|
@ -52,16 +52,15 @@ run_validator() {
|
|||
}
|
||||
|
||||
validate_feed() {
|
||||
# silence "self reference doesn't match" because i'm testing a localhost copy.
|
||||
# entries with the same timestamp isn't a big deal
|
||||
# unregistered link relationship is a false positive caused by an unknown namespace (rel-mentioned).
|
||||
rel_mention_string="Unregistered link relationship \($rel_mention_count occurrence"
|
||||
if [ "$rel_mention_count" = '1' ]; then
|
||||
rel_mention_string="Unregistered link relationship"
|
||||
fi
|
||||
|
||||
# silence "self reference doesn't match" because i'm testing a localhost copy.
|
||||
# 'should not contian" has a false positive triggered by ARIA
|
||||
# entries with the same timestamp isn't a big deal
|
||||
# unregistered link relationship is a false positive caused by an unknown namespace.
|
||||
full_regex="Use of unknown namespace|Self reference doesn't match|$rel_mention_string|entries with the same value|Validating $url"
|
||||
full_regex="Use of unknown namespace|Self reference doesn't match|$rel_mention_string|entries with the same value for atom:updated|Validating $url"
|
||||
|
||||
run_validator \
|
||||
| grep -Ev "$full_regex"
|
||||
|
|
Loading…
Reference in a new issue