feat: report broken links (4xx/5xx) in every scan

Neue 4xx/5xx-Seiten (nicht in Baseline) werden bewertet (+20 Pkt) und
lösen ab Schwelle einen Alert aus. Bekannte kaputte Links (in Baseline
vorhanden) erscheinen im Report als [bekannt] ohne Score-Beitrag.

Motivation: erster Crawl fand bredelar.info/www.stadtmarketing-marsberg.de
(404) — CMS-Fehler durch Schema-losen href. Soll dauerhaft sichtbar sein.

Änderungen: checker.find_broken_pages(), differ.compare_snapshots() mit
new_broken_urls/known_broken_urls, score_diff(), Report-Abschnitt,
config-Default new_broken_link:20, 4 neue Tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Your Name 2026-06-12 01:55:19 +02:00
commit b3ef3a90d4
6 changed files with 101 additions and 0 deletions

View file

@ -50,6 +50,7 @@ scoring:
comment_links: 25
noscript_links: 25
new_external_link_unlisted: 40
new_broken_link: 20 # neue 4xx/5xx-Seite, die in Baseline nicht vorhanden war
thresholds:
yellow: 20 # ab diesem Score: Warnung (gelb)