#github-action #markdown #validation #multi-threading #hyperlink #artifact #pages

app none-shall-pass

Artifact for GitHub Action to validate hyperlinks in all markdown files

13 releases

new 0.1.9 May 18, 2024
0.1.8 May 16, 2024
0.1.6 Feb 14, 2024
0.1.4 Nov 22, 2023
0.0.1 Oct 31, 2023

#95 in Debugging

Download history 178/week @ 2024-02-09 145/week @ 2024-02-16 20/week @ 2024-02-23 5/week @ 2024-03-01 10/week @ 2024-03-08 5/week @ 2024-03-15 97/week @ 2024-03-29 21/week @ 2024-04-05 96/week @ 2024-05-10

96 downloads per month

MIT license

2.5MB
480 lines

Contains (ELF exe/lib, 6.5MB) 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)
  • Ignores failure when the URL is a localhost / 127.0.0.1 / 0.0.0.0

Arguments

  • --debug - Enables debug level logging
  • --owner - Owner/organization of the repository
  • --repo - Name of the repository
  • --exclude - Exclude URLs (as comma separated list) 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

~7–18MB
~281K SLoC