none-shall-pass-0.1.3 is not a library.
none-shall-pass-rustic
Artifact for none-shall-pass
Summary
none-shall-pass-rusticis an application written in Rust.- Validates hyperlinks in markdown files.
- Accepts inputs provided as command-line arguments.
- Extracts hyperlinks from Markdown content, validates them concurrently using multithreading, and logs the validation results.
- Differentiates between local Markdown files and Wiki pages within the repository, expanding its validation scope.
- Usage via GitHub actions can be found in GitHub Marketplace
Description
- Clones the GitHub wiki pages
- Looks up all the
*.mdfiles - Scans for hyperlinks using regex (
inline,footnote, andanchored) - Sets exit code to 1, if any of the URL fails to resolve (
GETrequest)- Ignores failure when the URL is a
localhost - More exclusions can be added via commandline argument
- Ignores failure when the URL is a
- Takes argument
fail(as boolean) to avoid failure - Takes argument
debug(as boolean) to enable debug level logging - Takes argument
excludeHostnames(as comma separated list) to exclude URLs to have known failures
Crate
https://crates.io/crates/none-shall-pass
Linting
Requirement
rustup component add clippy
Usage
cargo clippy --no-deps --fix --allow-dirty
License & copyright
© Vignesh Rao
Licensed under the MIT License