-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlychee.toml
More file actions
40 lines (34 loc) · 1.46 KB
/
Copy pathlychee.toml
File metadata and controls
40 lines (34 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# lychee link checker configuration
# https://github.com/lycheeverse/lychee
# Treat these HTTP status codes as success (in addition to 2xx).
# 429 (Too Many Requests) is common from Microsoft Learn / rate-limited hosts.
# 202 (Accepted) is returned by some hosts (e.g. EUR-Lex) for valid pages.
accept = [200, 202, 206, 429]
# Retry + timeout tuning to reduce false positives from flaky/slow hosts.
max_retries = 3
retry_wait_time = 2
timeout = 20
max_concurrency = 8
# Send a real browser-like UA; some docs sites block default clients.
user_agent = "Mozilla/5.0 (compatible; lychee link checker)"
# Don't fail on mailto: or other non-http schemes.
scheme = ["https", "http"]
# Allowlist: hosts/paths that are known-flaky, rate-limited, or require auth.
# These are skipped rather than reported as broken.
exclude = [
# Service Trust Portal frequently rate-limits / requires sign-in.
"^https://servicetrust\\.microsoft\\.com",
# Local/dev and example URLs.
"^https?://localhost",
"^https?://127\\.0\\.0\\.1",
"example\\.com",
# release-please writes release/compare/tag URLs for the version being
# released into CHANGELOG.md, but the tag/release only exists once the
# release PR is merged — so they 404 during the PR's link check.
"^https://github\\.com/DevSecNinja/grip-visualizer/releases/tag/",
"^https://github\\.com/DevSecNinja/grip-visualizer/compare/",
]
# Exclude private/internal IPs.
exclude_private = true
exclude_link_local = true
exclude_loopback = true