Commit graph

133 commits

Author SHA1 Message Date
dependabot-preview[bot]
2f226167c4
Bump check-if-email-exists from 0.8.13 to 0.8.15 (#49)
Bumps [check-if-email-exists](https://github.com/amaurymartiny/check-if-email-exists) from 0.8.13 to 0.8.15.
- [Release notes](https://github.com/amaurymartiny/check-if-email-exists/releases)
- [Changelog](https://github.com/amaurymartiny/check-if-email-exists/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amaurymartiny/check-if-email-exists/compare/v0.8.13...v0.8.15)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-30 15:44:01 +01:00
dependabot-preview[bot]
13f3433c7f Bump assert_cmd from 1.0.1 to 1.0.2
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases)
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v1.0.1...v1.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-30 07:04:18 +00:00
dependabot-preview[bot]
7ad9e713ac Bump anyhow from 1.0.32 to 1.0.34
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.32 to 1.0.34.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.32...1.0.34)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-30 07:03:32 +00:00
dependabot-preview[bot]
ace25e92b8 Bump regex from 1.3.9 to 1.4.2
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.9 to 1.4.2.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.9...1.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-29 20:55:32 +00:00
dependabot-preview[bot]
be29dc7406
Bump serde from 1.0.115 to 1.0.117 (#45)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.115 to 1.0.117.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.115...v1.0.117)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-29 21:49:18 +01:00
dependabot-preview[bot]
675c9ea2af
Bump hubcaps from 0.6.1 to 0.6.2 (#43)
Bumps [hubcaps](https://github.com/softprops/hubcaps) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/softprops/hubcaps/releases)
- [Changelog](https://github.com/softprops/hubcaps/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/hubcaps/compare/v0.6.1...v0.6.2)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-29 21:48:40 +01:00
dependabot-preview[bot]
de4ccda6b6
Bump reqwest from 0.10.7 to 0.10.8 (#41)
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.10.7 to 0.10.8.
- [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.10.7...v0.10.8)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-29 21:48:27 +01:00
dependabot-preview[bot]
f347cdc083 Bump url from 2.1.1 to 2.2.0
Bumps [url](https://github.com/servo/rust-url) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.1.1...v2.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-29 20:48:20 +00:00
Matthias Endler
68b574d85d Make README.md the default when no inputs are given
That used to be the case according to the docs,
but somehow we broke it while introducing some
changes.
2020-11-25 10:40:36 +01:00
Matthias
883f638857
Revamp documentation 2020-11-25 10:22:03 +01:00
Matthias
8294e47307
Properly announce lychee user agent (#38) 2020-11-25 10:11:02 +01:00
Matthias
b0f7a805ef
Use builder pattern and channels (fixes #12) (#33)
This implements a basic builder for the Checker struct as discussed in #12.
It is using derive_builder and uses a custom build method to instantiate the more elaborate fields like reqwest::Client.
It also adds deadpool and tokio::mpsc as dependencies to handle a pool of clients to query websites.
2020-11-24 21:30:06 +01:00
Matthias
8025a2eedb
Formatting 2020-11-23 13:10:32 +01:00
Matthias Endler
d0b7a64d0a Refactor and add documentation 2020-11-10 00:03:50 +01:00
Matthias
1474ae802b
Update README.md 2020-11-09 12:12:57 +01:00
Matthias
a7673562d7
Fix formatting 2020-11-09 11:49:32 +01:00
Matthias
22c70cd85c
Use different icons for feature comparison (#32)
Taken from https://github.com/getzola/zola
2020-11-09 11:46:45 +01:00
Matthias Endler
11b2d3ff2c Update banner image 2020-11-06 00:30:15 +01:00
Matthias
f7a1fcdf70
Update README.md 2020-11-06 00:22:14 +01:00
Paweł Romanowski
326683f4eb
Make GITHUB_TOKEN optional (#22)
* Make GITHUB_TOKEN optional

This also makes the token possible to pass in from CLI args.

* Add missing test fixture file

* Normalize exit codes and GitHub checking behavior

The exit code is now defined as 1 for unexpected or config errors,
and 2 for link check failures.

GitHub checking behavior has been tweaked to generate errors if
a GitHub-specific check cannot be performed because of a missing
token.

* Remove short flag for github token
2020-10-26 23:31:31 +01:00
Matthias
ac79314c03
Mention support for basic auth by @FabianBG 2020-10-26 09:25:00 +01:00
Milton Fabian Bastidas Guerra
2bf62e7709
Add support for basic auth #18 (#20)
[Issue #18](https://github.com/hello-rust/lychee/issues/18)
* Add headers crate to type headers and create auth header
* Add cmd param basic-auth to set property to the main
* Add simple test to test if with auth headres is no broken

Signed-off-by: FabianBG <f4b4g3@gmail.com>
2020-10-26 09:23:45 +01:00
Matthias
f0e4c3adc1
Add support for include patterns (#23)
In one or more `include` arguments are specified, only check the URLs that match the patterns.
In case `exclude` arguments are also
specified, make an exception from the
excluded URLs if they also match the
`include` patterns.
2020-10-25 13:41:06 +01:00
Matthias
6463372799
Mention support for relative urls 2020-10-21 13:03:55 +02:00
Matthias
45bc8d1a96
Format unknown fields 2020-10-21 12:46:24 +02:00
Matthias Endler
39f1ab5083 ordering 2020-10-21 12:44:12 +02:00
Matthias
351067e7a3
Update config file support 2020-10-21 12:41:53 +02:00
Alexander Krantz
3a12b3e220
Configuration file (lychee.toml) (#16) 2020-10-21 02:10:25 +02:00
WhizSid
6bd7bbf51f
feat: Support relative URLs (#15) 2020-10-21 01:31:06 +02:00
Matthias Endler
6663f23707 Add little joke 2020-10-21 00:29:47 +02:00
Matthias
38ff97a2e5
Extend comparison table 2020-10-21 00:21:11 +02:00
Matthias
bbb7971e83
Update README.md 2020-10-20 23:13:45 +02:00
Matthias
93a2e93999
Formatting 2020-10-20 12:19:33 +02:00
Matthias
114a36866f
Formatting 2020-10-20 12:18:28 +02:00
Matthias
6c8c7c57e1
Add comparison table and recording of demo run (#17) 2020-10-20 10:40:45 +02:00
Matthias
ee895551c4
Update README.md 2020-10-19 00:09:53 +02:00
Matthias
49677ddc82
Merge pull request #11 from pawroman/dont-ignore-test-timeout
Un-ignore test_timeout, upgrade wiremock to 0.3
2020-10-19 00:05:40 +02:00
Paweł Romanowski
0790afdbf2 Un-ignore test_timeout, upgrade wiremock to 0.3 2020-10-18 11:44:00 +02:00
Matthias
f9fe11b078
Merge pull request #2 from u5surf/issue-1
Support exponential backoff in check_real #1
2020-10-18 00:46:50 +02:00
Matthias
9ac2176b32
Merge pull request #10 from pawroman/fix_clippy_warnings
Actions improvements: add rustfmt and clippy checks, run tests
2020-10-18 00:31:28 +02:00
Matthias
dd73d6e145
Merge pull request #7 from pawroman/exclude-private-urls
Add exclude private URLs feature
2020-10-18 00:28:30 +02:00
Matthias Endler
ebaabe5abf Merge master 2020-10-18 00:16:42 +02:00
Matthias Endler
ccbe7cbcb1 Update docs 2020-10-18 00:15:11 +02:00
Paweł Romanowski
eaec308a14 Add comment 2020-10-17 10:04:24 +02:00
Paweł Romanowski
e175558376 Add --exclude-all-private flag and cli integration test 2020-10-17 10:01:06 +02:00
Paweł Romanowski
96a92deffd Use more descriptive name for cargo test action 2020-10-16 14:47:54 +02:00
Paweł Romanowski
7bcf2de400 Actually run tests in GitHub actions 2020-10-16 14:38:05 +02:00
Paweł Romanowski
b2ada4746c Introduce cargo fmt and clippy checks, fix all clippy warnings 2020-10-16 14:35:38 +02:00
Paweł Romanowski
c043776b77 Use website_url function in checker tests
This makes the test code shorter and more readable.
2020-10-16 13:59:44 +02:00
Paweł Romanowski
69e18785f9 Implement exclude private URLs feature
The exclusion is currently based on IP addresses, as specified by inputs.
We support IPv4 and IPv6, where possible using the current stable stdlib
(as of Rust 1.47.0).

Note that we could go one step further and resolve all URIs using DNS
and then exclude-filter the private IPs.
2020-10-16 13:59:42 +02:00