Commit graph

291 commits

Author SHA1 Message Date
Matthias
46263298fe
Update README.md 2021-03-04 16:01:09 +01:00
Matthias
b7e641636c
Fix author mail in Cargo.toml 2021-03-04 14:59:48 +01:00
dependabot-preview[bot]
5506f9da17
Bump headers from 0.3.3 to 0.3.4 (#170)
Bumps [headers](https://github.com/hyperium/headers) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/hyperium/headers/releases)
- [Commits](https://github.com/hyperium/headers/compare/headers-v0.3.3...headers-v0.3.4)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-04 12:30:59 +01:00
dependabot-preview[bot]
1d596c8244
Bump check-if-email-exists from aac0586 to c61a1ea (#167)
Bumps [check-if-email-exists](https://github.com/reacherhq/check-if-email-exists) from `aac0586` to `c61a1ea`.
- [Release notes](https://github.com/reacherhq/check-if-email-exists/releases)
- [Commits](aac0586fb0...c61a1ea427)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 10:05:34 +01:00
dependabot-preview[bot]
3b05d79190
Bump hubcaps from 324d02f to a9e6616 (#166)
Bumps [hubcaps](https://github.com/softprops/hubcaps) from `324d02f` to `a9e6616`.
- [Release notes](https://github.com/softprops/hubcaps/releases)
- [Commits](324d02fbb3...a9e6616ecc)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 10:05:25 +01:00
dependabot-preview[bot]
af188d5eb7
Bump serde_json from 1.0.63 to 1.0.64 (#168)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.63 to 1.0.64.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.63...v1.0.64)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 10:05:08 +01:00
dependabot-preview[bot]
367c8fe48f
Bump serde_json from 1.0.62 to 1.0.63 (#162)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.62 to 1.0.63.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.62...v1.0.63)

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-26 11:25:43 +01:00
dependabot-preview[bot]
82cf6c63df
Bump wiremock from 0.5.0 to 0.5.1 (#159)
Bumps [wiremock](https://github.com/LukeMathWalker/wiremock-rs) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/LukeMathWalker/wiremock-rs/releases)
- [Changelog](https://github.com/LukeMathWalker/wiremock-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/LukeMathWalker/wiremock-rs/compare/v0.5.0...v0.5.1)

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-26 01:14:58 +01:00
Matthias
e46710ee68
Use less-intrusive formatting inspired by eslint (#160) 2021-02-25 21:00:06 +01:00
Matthias
a7168951c1
Enabled progress bar is the default now 2021-02-24 12:19:12 +01:00
dependabot-preview[bot]
89beb19702
Bump futures from 0.3.12 to 0.3.13 (#157)
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.12...0.3.13)

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-23 16:03:41 +01:00
dependabot-preview[bot]
f0e97afeb5
Bump wiremock from 0.4.9 to 0.5.0 (#158)
Bumps [wiremock](https://github.com/LukeMathWalker/wiremock-rs) from 0.4.9 to 0.5.0.
- [Release notes](https://github.com/LukeMathWalker/wiremock-rs/releases)
- [Changelog](https://github.com/LukeMathWalker/wiremock-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/LukeMathWalker/wiremock-rs/compare/v0.4.9...v0.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-23 16:03:27 +01:00
dependabot-preview[bot]
bd9370939a
Bump check-if-email-exists from 346a85a to aac0586 (#155)
Bumps [check-if-email-exists](https://github.com/reacherhq/check-if-email-exists) from `346a85a` to `aac0586`.
- [Release notes](https://github.com/reacherhq/check-if-email-exists/releases)
- [Commits](346a85ad18...aac0586fb0)

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-22 10:41:32 +01:00
Joesan
cefe38ee25
Add support for reletive links in Markdown files (#150) 2021-02-22 01:11:15 +01:00
Matthias
a6ebba6b69
Clean up exclude in link checking 2021-02-21 19:13:15 +01:00
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