|
| 1 | +// Linkinator treats the following as regex. |
1 | 2 | module.exports = [ |
2 | | - // GitHub search links fail with "429 Too Many Requests" |
3 | | - 'https://github.com/search?*', |
| 3 | + // Skip GitHub search links. |
| 4 | + 'https://github.com/search?.*', |
4 | 5 | 'https://github.com/github/gitignore/search?', |
5 | 6 |
|
6 | | - // LinkedIn links fail due to bug: https://github.com/stevenvachon/broken-link-checker/issues/91 |
7 | | - 'https://www.linkedin.com/*', |
8 | | - |
9 | | - // blc returns "BLC_UNKNOWN" on this link, even though cURL returns "302 Found" |
10 | | - 'https://www.ilo.org/dyn/normlex/en/f?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029', |
11 | | - |
12 | | - // the codercat link works but blc reports a false 404 |
13 | | - 'https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.1', |
14 | | - |
15 | | - // this URL started returning 403 to blc and cURL even though it works in a browser; see docs-internal #10124 |
16 | | - 'https://haveibeenpwned.com/', |
17 | | - 'https://haveibeenpwned.com/*', |
18 | | - |
19 | | - // this is a private repo customers are given access to when they purchase Insights; see docs-internal #12037 |
| 7 | + // These links require auth. |
| 8 | + 'https://github.com/settings/profile', |
| 9 | + 'https://github.com/github/docs/edit', |
20 | 10 | 'https://github.com/github/insights-releases/releases/latest', |
21 | 11 |
|
22 | | - // developer content uses these for examples; they should not be checked |
23 | | - 'http://localhost:1234/*', |
| 12 | + // Developer content uses these for examples; they should not be checked. |
| 13 | + 'http://localhost:1234', |
24 | 14 | 'localhost:3000', |
25 | 15 |
|
26 | | - // this URL works but blc reports a false 404 |
| 16 | + // Oneoff links that link checkers think are broken but are not. |
| 17 | + 'https://haveibeenpwned.com/', |
| 18 | + 'https://www.ilo.org/dyn/normlex/en/f?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029', |
27 | 19 | 'http://www.w3.org/wiki/LinkHeader/' |
28 | 20 | ] |
0 commit comments