|
1 | 1 | # ============================================================ |
2 | | -# lychee.toml (Lychee link checker configuration) |
| 2 | +# .github/lychee.toml (Lychee link checker configuration) |
3 | 3 | # ============================================================ |
| 4 | +# Updated: 2026-04-13 |
4 | 5 |
|
5 | 6 | # REQ.PROJECT: Automatic link checking using GitHub Actions and Lychee. |
6 | 7 | # WHY-FILE: Shared Lychee configuration (lychee.toml) for documentation-heavy repositories. |
@@ -32,11 +33,14 @@ accept = [ |
32 | 33 | 308, # Permanent redirect |
33 | 34 | 403, # Forbidden (often false positive) |
34 | 35 | 429, # Too many requests (rate limiting) |
35 | | - 503, # Service unavailable (temporary) |
36 | 36 | ] |
37 | 37 |
|
38 | 38 | # WHY: Exclude patterns that shouldn't be checked |
39 | 39 | exclude = [ |
| 40 | + "^https://shields\\.io", # WHY: Shields.io badges often have anti-bot measures that cause false positives |
| 41 | + "^https://img\\.shields\\.io", # WHY: Shields.io image badges often have anti-bot measures that cause false positives |
| 42 | + "^https://badges\\.github\\.com", # WHY: GitHub badges often have anti-bot measures that cause false positives |
| 43 | + "^https://www\\.linkedin\\.com", # WHY: LinkedIn often blocks automated requests, causing false positives |
40 | 44 | "example\\.com", # WHY: Exclude example domains in documentation |
41 | 45 | "localhost", # WHY: Exclude local development URLs |
42 | 46 | "127\\.0\\.0\\.1", # WHY: Exclude local loopback |
|
0 commit comments