mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-28 14:08:45 -04:00
* Add a link checker workflow using lychee Depends on #9207 (merged) https://github.com/lycheeverse/lychee-action * Adjust cron to run once every month instead * Apply suggestions * Pass zizmor's pedantic audit * Set `failIfEmpty: false` for lychee action * Add offline Lychee check to catch broken links after renames * Add workaround for `--files-from` option not respecting `extensions` * Escape `?` correctly in `.lycheeignore` * Don't accept timeouts, retry instead * Bump link checker workflow to `ubuntu-26.04` * Always scope to host correctly in `.lycheeignore` * Set `hidden = true` in config to ensure that dotfiles are scanned * Exclude issue template from the scan * with open --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
45 lines
1.0 KiB
TOML
45 lines
1.0 KiB
TOML
# https://lychee.cli.rs/guides/config/
|
|
|
|
verbose = "warn"
|
|
no_progress = true
|
|
cache = true
|
|
max_cache_age = "1d"
|
|
|
|
accept = "200..=204, 302, 307, 429"
|
|
cache_exclude_status = "500..=599, 403, 429"
|
|
|
|
require_https = true
|
|
exclude_all_private = true
|
|
|
|
max_concurrency = 50
|
|
accept_timeouts = false # Retry instead
|
|
timeout = 15
|
|
max_retries = 3
|
|
retry_wait_time = 1
|
|
|
|
extensions = [
|
|
"md", "html", "css", "js", "php", "phtml", "sh", "json", "jsonc", "xml", "yml", "yaml", "toml", "neon", "dist", "conf", "txt",
|
|
|
|
# Dotfiles
|
|
"htaccess", "editorconfig", "gitattributes", "gitignore", "jshintignore", "jshintrc", "stylelintignore", "dockerignore"
|
|
]
|
|
|
|
# For extensionless files
|
|
default_extension = "txt"
|
|
|
|
include_verbatim = true
|
|
hidden = true
|
|
|
|
exclude_path = [
|
|
# Files
|
|
'(^|/)index\.html$',
|
|
'(^|/)\.github/ISSUE_TEMPLATE/feed-report-form\.yml$',
|
|
|
|
# Directories
|
|
'(^|/)data/(cache|users|favicons)($|/)',
|
|
'(^|/)lib/(phpmailer|simplepie|phpgt|marienfressinaud)($|/)',
|
|
'(^|/)docs/(_includes|_layouts|i18n)($|/)',
|
|
'(^|/)p/scripts/vendor($|/)'
|
|
]
|
|
|