lychee/fixtures
Techassi 1b1fd0c707
feat: Add support for ranges in the --accept option / config field (#1167)
Adds support for accept ranges discussed in #1157. This allows the user to specify custom HTTP status codes accepted during checking and thus will report as valid (not broken). The accept option only supports specifying status codes as a comma-separated list. With this PR, the option will accept a list of status code ranges formatted like this:

```toml
accept = ["100..=103", "200..=299", "403"]
```

These combinations will be supported: `..<end>`, ` ..=<end>`, `<start>..<end>` and `<start>..=<end>`.
The behavior is copied from the Rust Range like concepts:

```
    ..<end>, includes 0 to <end> (exclusive)
    ..=<end>, includes 0 to <end> (inclusive)
    <start>..<end>, includes <start> to <end> (exclusive)
    <start>..=<end>, includes <start> to <end> (inclusive)
```


- Foundation and enhancements for accept ranges, including support for comma-separated strings and integration into the CLI.
- Implementations and updates for AcceptSelector, including Default, Display, and serde defaults.
- Address and fix various errors: clippy, cargo fmt, and tests.
- Add more tests, address edge cases, and enhance error messaging, especially for TOML config parsing.
- Update dependencies.
2023-09-17 21:39:01 +02:00
..
bench Extract more status information from reqwest (#577) 2022-04-02 14:37:03 +02:00
cache Fix deserialize of lycheecache status codes (#685) 2022-07-15 22:45:24 +02:00
cache_accept_custom_status_codes Put lycheecache tests into separate subfolders to avoid race 2023-03-03 12:13:09 +01:00
configs feat: Add support for ranges in the --accept option / config field (#1167) 2023-09-17 21:39:01 +02:00
dump_inputs feat: Add support for --dump-inputs (#1159) 2023-07-16 18:08:14 +02:00
exclude-path Add support for excluding paths from link checking (#623) 2022-05-29 17:27:09 +02:00
fragments Check fragments in HTML files (#1198) 2023-08-22 16:44:45 +02:00
ignore Add support for comments in .lycheeignore (#616) 2022-05-13 18:51:58 +02:00
offline Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
INTERNET_ARCHIVE.md Concurrent archives (#1027) 2023-05-11 20:20:27 +02:00
TEST.html Add new SVG-based screencast (#693) 2022-08-10 17:35:50 +02:00
TEST.md Introduce fragment checking for links to markdown files. (#1126) 2023-07-31 16:04:00 +02:00
TEST_ALL_PRIVATE.md feat: Support relative URLs (#15) 2020-10-21 01:31:06 +02:00
TEST_CODE_BLOCKS.md Implement excluding code blocks (#523) 2022-03-26 10:42:56 +01:00
TEST_DATA_URIS.html Add different verbosity levels (#824) 2022-11-28 23:25:33 +01:00
TEST_DUMP_EXCLUDE.txt Also dump excluded links (#615) 2022-05-13 18:53:16 +02:00
TEST_EMAIL.md Make checking email addresses optional (#1171) 2023-07-19 19:58:38 +02:00
TEST_EMAIL_QUERY_PARAMS.html Fix parsing error of email addresses with query params (#809) 2022-11-05 23:40:33 +01:00
TEST_EMAIL_QUERY_PARAMS.md Fix parsing error of email addresses with query params (#809) 2022-11-05 23:40:33 +01:00
TEST_EXAMPLE_DOMAINS.md Don't check example mail addresses by default (#815) 2022-11-08 23:46:32 +01:00
TEST_GITHUB.md Make GITHUB_TOKEN optional (#22) 2020-10-26 23:31:31 +01:00
TEST_GITHUB_404.md Make GITHUB_TOKEN optional (#22) 2020-10-26 23:31:31 +01:00
TEST_HTML5.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTML5_CUSTOM_ELEMENTS.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTML5_LOWERCASE_DOCTYPE.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTML5_MALFORMED_LINKS.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTML5_MINIFIED.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_HTTP.html Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_REPETITION_1.txt Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_REPETITION_2.txt Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_SCHEMES.md Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_SCHEMES.txt Prevent flaky tests (#514) 2022-02-18 10:29:49 +01:00
TEST_VERBATIM.html Fix nested URL extraction in verbatim elements (#988) 2023-03-11 15:18:25 +01:00