Commit graph

276 commits

Author SHA1 Message Date
Matthias
27709d25e3
Merge pull request #153 from lycheeverse/filetype
Add "Filter" module that combines includes and excludes
2021-02-21 17:42:22 +01:00
Matthias
551c988708
Update links.yml 2021-02-21 17:27:32 +01:00
Matthias Endler
2272ad1a48 Show progress bar by default (can be disabled with --no-progress) 2021-02-21 17:19:32 +01:00
Matthias Endler
09ceda5931 Rearrange and extend tests 2021-02-21 17:00:44 +01:00
Matthias Endler
14d47d9108 Initialize exclude using Default and field overwriting 2021-02-21 16:55:26 +01:00
Matthias Endler
fa1952dd98 cleanup 2021-02-21 16:42:09 +01:00
Matthias Endler
1f6cbd1aa4 Add excludes to filter module 2021-02-21 16:35:13 +01:00
Matthias Endler
9fe1244f8c Add expect for website function in test_utils 2021-02-21 16:34:46 +01:00
Matthias Endler
ca71a5df2d Add filter module that encapsulates includes/excludes 2021-02-21 16:34:22 +01:00
Matthias Endler
e00cdbf1ae example.com -> example.org 2021-02-21 16:33:33 +01:00
Matthias
41b82cb459
Add support and tests for .markdown files (#152) 2021-02-21 09:48:44 +01:00
Matthias Endler
8d165a3cda Add support and tests for .markdown files 2021-02-21 09:37:49 +01:00
Matthias
b8f24bfa3b
Merge pull request #145 from lycheeverse/simple-client
Improve lychee ergonomics
2021-02-19 17:56:55 +01:00
dependabot-preview[bot]
5cfff40e0a
Bump check-if-email-exists from 2bbcd75 to 346a85a (#144) 2021-02-19 13:25:17 +01:00
Matthias
252ac4761a
Merge pull request #148 from lycheeverse/dependabot/cargo/reqwest-0.11.1
Bump reqwest from 0.11.0 to 0.11.1
2021-02-19 12:31:18 +01:00
Matthias
4a106a2e47
Merge pull request #147 from lycheeverse/dependabot/cargo/url-2.2.1
Bump url from 2.2.0 to 2.2.1
2021-02-19 12:31:00 +01:00
dependabot-preview[bot]
6c1bc8fe39
Bump reqwest from 0.11.0 to 0.11.1
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.0...v0.11.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-19 06:56:01 +00:00
dependabot-preview[bot]
fbab3c9b71
Bump url from 2.2.0 to 2.2.1
Bumps [url](https://github.com/servo/rust-url) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.2.0...v2.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-19 06:55:28 +00:00
Matthias Endler
678dc4f18e Add support for colored output 2021-02-19 00:41:49 +01:00
Matthias Endler
a4b1609424 Improve progress visualization 2021-02-19 00:23:35 +01:00
Matthias Endler
1a95aa4a44 Format 2021-02-19 00:05:14 +01:00
Matthias Endler
69e3b2cffc Formatting 2021-02-18 23:33:26 +01:00
Matthias Endler
59c6093c8a Formatting 2021-02-18 23:33:14 +01:00
Matthias Endler
5226cd10aa Change exclude behavior to make includes more intuitive
Previously an include alone would not mean that only the included
patterns were checked. Only if an exclude was given as well,
the includes would make a difference. Now, the includes on their
own will work as expected.
Moved the exlude methods into the Exclude mod.
Also changed the order of exclude tests to do the fast lookup
ones before the regex ones.
Added tests to guarantee behavior in the future.
2021-02-18 21:42:00 +01:00
Matthias Endler
fe5cea1de3 Add doc-comment tests 2021-02-18 11:14:00 +01:00
Matthias Endler
16cd67331a Add simple, standalone client
Adds a new function `lychee::check()`, which removes
a lot of boilerplate for simple cases. Adjusted the code,
tests, and documentation.
The downside is that `check` now returns a Result, so
we have to use `?` to get to the response. That's because
we have to account for the case where the given string is
not a valid URI.
2021-02-18 01:32:48 +01:00
Matthias
ae2d02b8a0
Merge pull request #143 from lycheeverse/input-source
Show input source in status output
2021-02-17 15:03:49 +01:00
Matthias Endler
737f6d3c3b Update help message 2021-02-17 13:54:41 +01:00
Matthias Endler
7a4ed41b27 Fix test after switching to pretty JSON output 2021-02-17 12:32:29 +01:00
Matthias Endler
867a9ac31a Collapse output conditions 2021-02-17 12:32:17 +01:00
Matthias Endler
0db81e27d6 Bump version 2021-02-17 12:22:39 +01:00
Matthias Endler
8e5799a041 Always display output in the expected format
Even on stdout we print JSON now if `--format json` is set.
The reason is that not outputting any JSON when the format
is requested can be unintuitive. It is also great for debugging
purposes before sending the output to a file
with the `--output` argument.
2021-02-17 12:22:31 +01:00
Matthias Endler
0872604f18 Clean up program output
Use response.to_string instead of custom status_message function
2021-02-17 12:20:51 +01:00
Matthias Endler
751deeb9b9 Show failure reason in status output
Use HashSet<Response> instead of Vec<Uri> for status output
2021-02-17 12:18:56 +01:00
Matthias Endler
8173e9927f Be more explicit about supported output formats 2021-02-17 12:17:45 +01:00
Matthias Endler
d16e4fa1bc Implement Serialize and Display for Status 2021-02-17 12:13:49 +01:00
Matthias Endler
b7bdfa6890 Add helper methods for Status 2021-02-17 12:13:32 +01:00
Matthias Endler
8e15bfb0be Implement Display and Serialize for Response 2021-02-17 12:12:37 +01:00
Matthias Endler
7859cb17c6 Cleanup unused deserialize 2021-02-17 12:11:51 +01:00
Matthias Endler
d9adfbf80f Add support for serializing input 2021-02-17 12:11:28 +01:00
Matthias Endler
d6b960368a Adjust tests 2021-02-17 12:10:57 +01:00
Matthias Endler
4faf40cfba Move check functions closer together 2021-02-17 01:01:43 +01:00
Matthias Endler
e859f1290e Correct matches for fail_map and add test 2021-02-16 01:21:45 +01:00
Matthias Endler
428df23c1c Fix lints and test on Linux 2021-02-16 00:53:01 +01:00
Matthias Endler
54e1d3e078 Simplify tests 2021-02-16 00:35:59 +01:00
Matthias Endler
4bec47904e Show input source in status output
If an error occurs during link checking,
it is important to know where the error occured.
Therefore the request and response objects now contain a the input
source as a field. This makes error tracking easier.
2021-02-16 00:15:14 +01:00
Matthias
a633afc6b9
Use lychee master for link checking 2021-02-15 11:21:29 +01:00
dependabot-preview[bot]
c7b2b9e805
Bump linkify from 0.4.0 to 0.5.0 (#141)
Bumps [linkify](https://github.com/robinst/linkify) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/robinst/linkify/releases)
- [Changelog](https://github.com/robinst/linkify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/robinst/linkify/compare/0.4.0...0.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-15 10:04:02 +01:00
dependabot-preview[bot]
98c603670d
Bump check-if-email-exists from 37e398d to 2bbcd75 (#142)
Bumps [check-if-email-exists](https://github.com/reacherhq/check-if-email-exists) from `37e398d` to `2bbcd75`.
- [Release notes](https://github.com/reacherhq/check-if-email-exists/releases)
- [Commits](37e398d6c6...2bbcd75ced)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-15 10:02:21 +01:00
Matthias
75e2f32fac
Fix issues with some dependencies (#140)
* Try to make lychee buildable for Apple Silicon (ring)
* Fix issues with old tokio 0.2 deps (async_smtp)
2021-02-12 22:34:41 +01:00