9 releases

Uses old Rust 2015

0.1.6 Feb 14, 2024
0.1.5 Feb 14, 2024
0.1.4 Nov 22, 2023
0.0.9 Nov 4, 2023
0.0.1 Oct 31, 2023

#119 in Text processing

Download history 359/week @ 2023-11-01 19/week @ 2023-11-08 15/week @ 2023-11-15 75/week @ 2023-11-22 41/week @ 2023-11-29 21/week @ 2023-12-06 17/week @ 2023-12-13 17/week @ 2023-12-20 24/week @ 2023-12-27 18/week @ 2024-01-24 17/week @ 2024-01-31 1/week @ 2024-02-07 785/week @ 2024-02-14

821 downloads per month

MIT license

3MB
353 lines

Contains (ELF exe/lib, 10MB) asset_none-shall-pass

none-shall-pass-rustic

made-with-rust

build

Artifact for none-shall-pass

Summary

  • none-shall-pass-rustic is 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 *.md files
  • Scans for hyperlinks using regex (inline, footnote, and anchored)
  • Sets exit code to 1, if any of the URL fails to resolve (GET request)
    • Ignores failure when the URL is a localhost
    • More exclusions can be added via commandline argument
  • 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

© Vignesh Rao

Licensed under the MIT License

Dependencies

~6–20MB
~289K SLoC