1+ # Lychee link checker configuration
2+ # This file configures how lychee validates links in the repository
3+ #
4+ # For more information about lychee configuration, see:
5+ # https://github.com/lycheeverse/lychee#configuration
6+ #
7+ # This configuration addresses false positive errors from the link checker:
8+ # - 403 Forbidden: Some sites (shields.io, qlty.sh) block automated requests
9+ # but work fine in browsers
10+ # - 429 Too Many Requests: Rate limiting doesn't mean the link is broken
11+
12+ # Accept these HTTP status codes as valid
13+ # 200: OK (standard success)
14+ # 204: No Content (valid response with no body)
15+ # 206: Partial Content (valid for range requests)
16+ # 403: Forbidden (some sites block automated requests but links work in browsers)
17+ # 429: Too Many Requests (rate limiting, link may be valid)
18+ accept = [200 , 204 , 206 , 403 , 429 ]
19+
20+ # Timeout for requests (in seconds)
21+ timeout = 30
22+
23+ # Maximum number of retries per link
24+ max_retries = 3
25+
26+ # Maximum number of concurrent network requests
27+ max_concurrency = 8
28+
29+ # User agent string to use for requests
30+ # Some sites require a browser-like user agent to avoid blocking
31+ user_agent = " Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
32+
33+ # Exclude URL patterns from link checking
34+ exclude = [
35+ ' ^http://127\.0\.0\.' ,
36+ ' ^http://localhost' ,
37+ ' ^https://localhost' ,
38+ ' ^file://' ,
39+ ]
0 commit comments