-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlychee.toml
More file actions
149 lines (111 loc) · 3.84 KB
/
Copy pathlychee.toml
File metadata and controls
149 lines (111 loc) · 3.84 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# https://lychee.cli.rs/guides/config/
#-------------------------------------------------------------------------------
# DISPLAY
# @config-manager:start display
# Verbose program output
# Accepts log level: "error", "warn", "info", "debug", "trace"
verbose = "error"
# Output format
format = "markdown"
# Path to summary output file.
output = "lychee.md"
# Show host statistics
host_stats = true
# @config-manager:end display
#-------------------------------------------------------------------------------
# CACHE
# @config-manager:start cache
# Enable link caching. This can be helpful to avoid checking the same links on
# multiple runs.
cache = true
# Discard all cached requests older than this duration.
max_cache_age = "2d"
# A list of status codes that will be ignored from the cache
cache_exclude_status = "500.."
# @config-manager:end cache
#-------------------------------------------------------------------------------
# RUNTIME
# @config-manager:start runtime
# File to read and write cookies
cookie_jar = ".lychee-cookie-jar"
# Maximum number of allowed redirects.
max_redirects = 3
# Maximum number of allowed retries before a link is declared dead.
max_retries = 3
# Include hidden files/directories which begin with `.`.
hidden = true
# @config-manager:end runtime
#-------------------------------------------------------------------------------
# REQUESTS
# @config-manager:start requests
# User agent to send with each request.
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36"
# Website timeout from connect to response finished.
timeout = 30
# Minimum wait time in seconds between retries of failed requests.
retry_wait_time = 2
# Comma-separated list of accepted status codes for valid links.
accept = ["200..=308", "429"]
# Proceed for server connections considered insecure (invalid TLS).
insecure = false
# When links are available using HTTPS, treat HTTP links as errors.
require_https = true
# Request method
method = "get"
# Minimum accepted TLS Version
min_tls = "TLSv1_0"
accept_timeouts = true
# @config-manager:end requests
#-------------------------------------------------------------------------------
# EXCLUSIONS
# @config-manager:start exclusions
# Skip missing input files (default is to error if they don't exist).
skip_missing = false
# Do not skip files that are ignored
no_ignore = false
# Check links inside `<code>` and `<pre>` blocks as well as Markdown code
# blocks.
include_verbatim = true
# Ignore case of paths when matching glob patterns.
glob_ignore_case = true
# Exclude loopback IP address range and localhost from checking.
exclude_loopback = true
# Check mail addresses
include_mail = true
# @config-manager:end exclusions
#-------------------------------------------------------------------------------
# OTHER
# @config-manager:start other
# Use the Wayback Machine as web archive
archive = "wayback"
# Search and suggest link replacements for all broken links
suggest = true
# @config-manager:end other
#-------------------------------------------------------------------------------
# HOSTS
# @config-manager:start hosts
# Maximum simultaneous requests to the same host
host_concurrency = 5
# Minimum interval between requests to the same host
host_request_interval = "500ms"
# @config-manager:end hosts
exclude = [
# @config-manager:start host-excludes
'@github.com',
'bitbucket.org/org/',
'file://..',
'github.com/org/',
'gitlab.com/org/',
'go.nwlabs.dev',
'https://(([^\.]+)\.)?(([^\.]+)\.)?console.aws.amazon.com',
'https://([^\.]+).awsapps.com',
'https://(www\.)?example.(com|net|org)',
'https://(www\.)?npmjs.com/package/',
'https://aws-mcp(\.([^\.]+).api.aws)?',
'https://region-code(.signin.aws.amazon.com)?',
'package://',
'pkg.go.dev/go.nwlabs.dev',
'shellcheck.net',
'taplo://',
# @config-manager:end host-excludes
]